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.
Hi,
Thanks for looking at my post.
Any help will be appreciated
I have below table and i would like to get only one number as sum please. Currently it is summing each and every row and giving massive number. What i am expecting please is for Feb 2024 expecting result as 9 please and so on
Thanks a lot
Thanks for your reply.
I think i did not explain properly.
What i am after is 3 months of rolling average.
In this example above for Feb 2024 = Dec 2023 + Jan 2024+Feb 2024 = 0 + 6 + 3 = 9
For Mar 2024 = JAn 2024 + Feb 2024 + Mar 2024 = 6 +3 + 7 = 16
Hope this make sense.
Really appreciate your help 🙂
Thanks for the reply from @lbendlin , please allow me to provide another insight:
Hi @jimpatel ,
How was outcome 9 derived? One can try to modify the formula as follows:
3M =
VAR MaxDate =
MAX ( 'Calender'[Dates] )
RETURN
CALCULATE (
SUM ( 'Table1'[Colum3] ),
FILTER ( ALL ( 'Calender' ), 'Calender'[Dates] = MaxDate )
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can't use the MAX inside the CALCULATE like this. Move the MAX out into a variable.
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 |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |