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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors