Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |