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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
fabiansd
New Member

Sliding window operation

Hi!

 

So I have data registered on datapoints with an assigned column of (date + timestamp). This means that I cannot use the DATE-functions (like DATESBETWEEN) due to duplication errors.

 

I want to perform a calculation on a data point using the datapoints in the last 24 hours. The resolution on the data is in minutes, so a 24-hour window yields 1440 data points. My first attempt was using a FILTER method to filter out this window for each point iteratively for each datapoint, meaning that a table of 1440 data point is loaded for each data point in the dataset. This operation simply never finishes..

 

Alarm kodesnutt Joachim.PNG

 

What I think would be the right approach is performing a sliding window calculation. Thus, when you jump to a consecutive data point, you shift the window one time step such that you only have to delete the earliest point and add the point you just visited. This avoids reloading 1440 data points. 

 

The calculation is counting the number of data points that is below a static limit.

 

Any suggestions on how I can do this?

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @fabiansd,

 

Can you share a dummy sample that we can download? And the expected result.

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.