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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Twan
Advocate IV
Advocate IV

Limit Stream Analytics Data by Time

Hello I was wondering if there is any way to limit the amount of stream analytics by time that is used in the data set in Power BI.  For example I have a requirement to only show the last days Stream Analytics data in the dashboard.  But the only time filters that can be used on the reports are to allow data before or after a certain date.  It would be useful if there was a time filter for "Last X Hours" or "Last X Days".

 

3 REPLIES 3
fbrossard
Kudo Commander
Kudo Commander

Hi,

 

You can simply modify your query in Stream Analytics by adding a where clause and using dateadd function

https://msdn.microsoft.com/en-us/library/azure/dn834997.aspx

julie
Microsoft Employee
Microsoft Employee

You can also try to create a Q&A visual with "in the last x days/hours/minutes/seconds" for the time window you want, then pin it to the dashboard.

PowerBIGuy
Responsive Resident
Responsive Resident

Try creating a numbered index or rank column based on date and use this coulmn to filter your dataset.

Business Intelligence Architect / Consultant

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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