Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Stream analytics job with iot hub data

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)
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.