To fetch the date below query is working
DATETRUNC('day', [N].Timestamp)
To fetch the Hour in the time i try DATEPART('HOUR',[N].Timestamp) but DATEPART is not working. Anyone please help. I need to show Hour details in one column.
@rajasekar, you should just be able to cchangethe 'day' to 'hour' to achieve what you are looking for. See the below link for supported SWQL functions and usage information.
github.com/.../SWQL-Functions
As Christopher mentioned SWQL Functions · solarwinds/OrionSDK Wiki · GitHub is the definitive source of what functions are and are not supported in SWQL.
And, as you have discovered, DATEPART is NOT a supported function for SWQL. But, if I understand your example correctly, I believe you should be able to achieve what you want using the HOUR function; e.g.
HOUR( [N].Timestamp )
Hope that helps!