Forum Discussion
Timeline graph for Stream Analytics for the past one hour
I have the below query to show the Temperature of the device by timeline in stream analytics using live data
SELECT
DeviceId,DeviceFields.Temperature as Temperature,System.Timestamp AS time
INTO pbioutput
FROM
iotcts2Input
The dataset is available in the power bi portal after the job started.
The problem is the data set gets accumulated in the app.powerbi.com site and .Is there a way to show the graph for the past one hour.
I tried using the filters in the portal,But there is no option for the same.
5 Replies
- Twan
Advocate IV
The only way I could find to filter the data for the last hour is to create a dashboard with the stream analytics data and then use the Q&A box at the top to create the required tables / charts.
To do this you just need to add a phrase like "time in the 60 minutes". So the complete Q&A phrase to create a grpah for the data in the last hour would be something like "show the average of Temperature by time as line chart where time is in the last 60 minutes"
- EnricoFrequent Visitor
The Q&A field is nice, but does not help to set a timeline to a dashboard. And thats mandatory. We are also using ASA and whant to show realtime data for the last 2 hours and thats not possible. Not in ASA and not in the Power BI web app. Why?
- ExpechoNew Member
Bump, is there already a solution to this?
- sirui_sun
Microsoft Employee
sreeparam - for your scenario, try the following Q&A query:
"Temperature DeviceId over time last 1 hour"
This should give you a line chart with time on the x-axis, temperature on the y-axis, and Device ID as the legend.