I'm trying to stream data from my device to Azure IoT Hub to Stream Analytics to Power BI. Power BI implemented a new way to display streaming data. I would like to generate a line chart via the "Add tile" button on a Power BI Dashboard. This takes care of autorefresh of my streaming data chart.
My current streaming data (which works excellent when displayed statically in Power BI via "Create report"...) produces a rather weird line chart in streaming data mode: image.
My guess is that the arrival of new data in Power BI is not in chronological order. New data may be placed in the line chart in the correct temporal position but the line connecting the values is drawn in the order of arrival. This might cause the line to "jump back" in time?!
To minimize wrong ordering I am trying to prevent "adjusting other events" as well as accepting wrong ordering in Stream Analytics: configuration
The problem: with this configuration the Stream Analytics Job creates no output.
My ASA Query looks like this:
SELECT
Name,
Value,
Timecreated,
CAST (latest AS float) AS latest,
COUNT(*)
INTO
[ToPowerBI]
FROM
[Eing-CANdata] TIMESTAMP BY Timecreated
GROUP BY
Name, Value,Timecreated,latest,
tumblingWindow(Duration(Second, 1))
The "Timecreated" is formatted this way:
2017-03-06T11:51:22.246235Z
its accepted by Azure as timestamp.
Changing the configuration to accepting "out of order events with a timestamp in" the range of 10 seconds doesn't produce any output either.
The only way to create output is changing the configuration to "adjusting other events." But the Azure information tells me that "Adjust keeps the events and changes their timestamps". This would reorder the data which is not what I want.
My goals:
- get data through Stream Analytics as fast as possible
- avoid adjusting the timestamp as I need the original one!!
- ultimately get a proper (& "real-time-like") streaming data line chart in PowerBI
My question(s): Why is Stream Analytics not outputting any data in "Drop other events" mode? How can I get output from Stream Analytics in this mode?
(I have an important presentation coming up and your help would be greatly appreciated!)