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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ashthakur786
New Member

15 minute moving average for non-continues data spanning multiple days

Hi,

 

This is my first post so appologies for not following set standards 🙂

I have data in the format below, for multiple 'events' spanning over multiple days.

 

ashthakur786_0-1675814301093.png

My goal is to create a dashboard with date slicer allowing user to select a single day and highlight graph with 15 min moving average for TMinMin (count of events in a minute) for selected event.

I have tried to create a measure below but incorrect results.

 
15minRollingAvgB2R02 =
VAR MinsInWindow_ = 15 //Change window lenght as required (in minutes)
VAR HigherEnd_ = SELECTEDVALUE(SUMM_CVT01[TimeStamp])
VAR LowerEnd_ = HigherEnd_ - MinsInWindow_ / ( 24 * 60 )
RETURN
    CALCULATE (
        AVERAGE ( SUMM_CVT01[TMinMin] ),
        SUMM_CVT01[TimeStamp] <= HigherEnd_,
        SUMM_CVT01[TimeStamp] > LowerEnd_,
        All(SUMM_CVT01)
    )

 

Thanks for reading and appreciate any help.

 

cheers,

Ash

 

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @ashthakur786 ,

What kind of results are you trying to get from the data you provided? 
Can you add another column after it with the desired output? And explain in detail how it is calculated, please!

 

How to Get Your Question Answered Quickly 

 

 

Best Regards
Community Support Team _ Polly

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors