Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Team
I have the following query in azure database, this query retrieves two sensors data namely; temp and illuminance. I am struggling to get a field 'date' to retrieve current date time stamp. I need help as to how to go about using this syntax in my below query?
DO i need to use DATEDIFF() function? Any ideas to improve my query below please show me and guide me, thanks.
SELECT illuminance as illuminance, temperature as temperature, MAX(CAST([timeStamp] AS datetime)) AS Date INTO [PowerBIVisualizationOutput] FROM [PowerBIVisualizationInput] GROUP BY illuminance, temperature, TumblingWindow(minute,5)
User | Count |
---|---|
5 | |
5 | |
3 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
4 | |
4 | |
4 |