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
Anonymous
Not applicable

How to ignore visual column filters?

Hi All,

 

I'm trying to show the same SUM value for both Jan and Feb months, I'm able to show the sum using a Card visual, but once it's in a Matrix it's not showing the sum correctly. 

Example Card Visual:

reggieveggie_0-1730771268292.png

Example Matrix Visual:

reggieveggie_1-1730771291856.png

 

My expected outcome is Jan and Feb showing 519.92 (total sum) for both months in the matrix visual. 

I've tried using this DAX, but it's not working, 

JanFebSUM = CALCULATE([Vol],'g_Calendar'[MMM] = "Jan"||'g_Calendar'[MMM]="Feb",REMOVEFILTERS('g_Calendar[MMM]))
 
Thanks for the help! 
1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @Anonymous 

Based on your matrix visual, the column 'g_Calendar'[MMM] has a Sort By Column defined.

If this is the case, you need to include this column in REMOVEFILTERS as well.

 

For example, if the Sort By Column is 'g_Calendar[Month], then your measure could be written as follows (I used IN for the filter argument for brevity):

JanFebSUM =
CALCULATE (
    [Vol],
    'g_Calendar'[MMM] IN { "Jan", "Feb" },
    REMOVEFILTERS ( 'g_Calendar'[MMM], 'g_Calendar'[Month] )
)

See these articles:

https://www.sqlbi.com/blog/marco/2018/05/04/removing-column-filter-in-power-bi-when-sort-by-column-is-active/

https://www.sqlbi.com/articles/side-effects-in-dax-of-the-sort-by-column-setting/

 

Does this help?

 

Regards

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @Anonymous 

Based on your matrix visual, the column 'g_Calendar'[MMM] has a Sort By Column defined.

If this is the case, you need to include this column in REMOVEFILTERS as well.

 

For example, if the Sort By Column is 'g_Calendar[Month], then your measure could be written as follows (I used IN for the filter argument for brevity):

JanFebSUM =
CALCULATE (
    [Vol],
    'g_Calendar'[MMM] IN { "Jan", "Feb" },
    REMOVEFILTERS ( 'g_Calendar'[MMM], 'g_Calendar'[Month] )
)

See these articles:

https://www.sqlbi.com/blog/marco/2018/05/04/removing-column-filter-in-power-bi-when-sort-by-column-is-active/

https://www.sqlbi.com/articles/side-effects-in-dax-of-the-sort-by-column-setting/

 

Does this help?

 

Regards

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
Anonymous
Not applicable

Yes it worked! Thank you so much! 

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.