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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cmncp
Helper III
Helper III

Remove Report level Year filter on a single visual

I have a Power BI report that has a Report Level filter to only include data for the last 3 years.   I need to remove this filter for a single visual which needs to show a column chart showing all years, not just the last 3.  I know I need to do this in DAX, but can't work out the formula.  I have tried:

 

CALCULATE(sum(Sales[SalesAmount]), all('Calendar'[Year]))

 

But when I use this, my chart still only has the last 3 years on it, but each 3 columns displays the same amount which is the total sales for all all years.

 

2020-03-27_9-29-32.png

Any suggestions greatly appreciated.

1 ACCEPTED SOLUTION

@cmncp - Correct. It's a bit unexpected honestly because one might think that the report and page level filters would just add filter context the way visuals on a page add filter context and thus you would be able to override that filter context within DAX. But, that is not what occurs. The report and page filters pre-filter the data that is even available to DAX when performing calculations. Efficient that way but also a bit unfortunate in circumstances such as this.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

This came up before. It was determined that the page filter was pre-filtering things such that DAX could not "bring back" the data by removing the filters.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler   So there is no way to write a DAX measure that overrides the report level filter?

@cmncp - Correct. It's a bit unexpected honestly because one might think that the report and page level filters would just add filter context the way visuals on a page add filter context and thus you would be able to override that filter context within DAX. But, that is not what occurs. The report and page filters pre-filter the data that is even available to DAX when performing calculations. Efficient that way but also a bit unfortunate in circumstances such as this.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

DAX can override ANY filter and in your case, it demonstrates it clearly.

 

However, what you are seeing has nothing to do with DAX. Your measure removes all filters from the Calendar, so you see the sum across all the years. But you see only 3 years on the x-axis because the report-level filter puts this constraint on the Calendar and your visual queries the dimension to see which years should be shown. This has nothing to do with DAX. Your DAX removes the filter FOR THE DURATION OF THE CALCULATION correctly. Nothing more.


Best
D

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.