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 all,
Having some problems with my rolling sum function below, I have slicers on the page so when I use the Filter(ALL( function it removes the interaction with the sliders. Is there anyway to calculate rolling sums without FILTER(ALL)?
Solved! Go to Solution.
@Anonymous
You can change all() to ALLSELECTED()
Before not selected:
After the slicer is selected:
the ALL function ignores all filters, regardless of where they are coming from. In contrast, the ALLSELECTED function only ignores filters that are coming from the inner query.
This is the difference between all() and ALLSELECTED():
https://mitchellpearson.com/2020/09/14/understanding-row-context-in-dax-and-power-bi/
Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous
You can change all() to ALLSELECTED()
Before not selected:
After the slicer is selected:
the ALL function ignores all filters, regardless of where they are coming from. In contrast, the ALLSELECTED function only ignores filters that are coming from the inner query.
This is the difference between all() and ALLSELECTED():
https://mitchellpearson.com/2020/09/14/understanding-row-context-in-dax-and-power-bi/
Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous , have you tried a measure like
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD("Date"[Date ],MAX("Date"[Date ]),-12,MONTH))
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD("Date"[Date ],eomonth(MAX("Date"[Date ]),0 ),-12,MONTH))
tiill last month
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD("Date"[Date ],eomonth(MAX("Date"[Date ]),-1 ),-12,MONTH))
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 |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |