I am sending some data including a datetime field from Stream Analytics to PowerBi. Line diagrams draw correctly with both date and time shown but other diagrams like tables and filters only show year-month-date and not hour-minute-second parts of date time. Is it possible to format date time fields in visualization somehow? And will you be introducing Max Min operations on date time fields in powerbi as you have for number fields?
0
votes
1 Answers
0
votes
I had a similar issue and split it up before sending to PBI. That way you can add them in separately or grouped.
concat(
cast( datepart(yy,DateAdd(Hour,11,System.Timestamp)) as nvarchar(max)),
'/',
cast( datepart(mm,DateAdd(Hour,11,System.Timestamp)) as nvarchar(max)),
'/',
cast( datepart(dd,DateAdd(Hour,11,System.Timestamp)) as nvarchar(max))) [Date],
concat(
cast( datepart(hh,DateAdd(Hour,11,System.Timestamp)) as nvarchar(max)),
':',
cast( datepart(ss,DateAdd(Hour,11,System.Timestamp)) as nvarchar(max))) [Time],
Hope that works for you!