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.
I am trying to plot the 7 Day rolling average of CT, but i am unable to do so for some reason using the quick measures. Can anybody help me, will really appreciate it. Thanks!
PBI File: https://drive.google.com/file/d/1vRCu6cUpuenbHro2t3TD8E3oa6YRFL7z/view?usp=sharing
Solved! Go to Solution.
Hi, @Stan_Lego ;
If you want to use rolling average base on [CheckInTime] , please try it.
RoLL =
CALCULATE (
AVERAGE ( [CT] ),
FILTER (
ALL ( TrackingTable ),
DATEDIFF ( [CheckInTime], MAX ( [CheckInTime] ), DAY ) <= 6
&& DATEDIFF ( [CheckInTime], MAX ( [CheckInTime] ), DAY ) >= 0
)
)
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Stan_Lego ;
I don't quite understand why Averge starts from 0, can you share the results and logic you expect to output?
RoLL =
CALCULATE(AVERAGE([CT]),FILTER(ALL(TrackingTable),DATEDIFF([CheckOutTime],MAX([CheckOutTime]),DAY)<=6&&DATEDIFF([CheckOutTime],MAX([CheckOutTime]),DAY)>=0))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Stan_Lego ;
If you want to use rolling average base on [CheckInTime] , please try it.
RoLL =
CALCULATE (
AVERAGE ( [CT] ),
FILTER (
ALL ( TrackingTable ),
DATEDIFF ( [CheckInTime], MAX ( [CheckInTime] ), DAY ) <= 6
&& DATEDIFF ( [CheckInTime], MAX ( [CheckInTime] ), DAY ) >= 0
)
)
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your help, i just wanna ask why doesn't the graph start from zero and instead it starts from a particular value. Is it possible to make the graph only calculate rolling average from the first date in the database based on check out?
Thanks again for the help
@Stan_Lego , with help from date table you should calculate rolling 7 days like
example
Rolling = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-7,DAY))
Yet to check the file
@amitchandak Yep I have tried but when it does not show anything when i want to plot it on a line graph
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
62 | |
61 | |
52 | |
39 | |
23 |
User | Count |
---|---|
85 | |
58 | |
45 | |
43 | |
38 |