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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CP_2024
Frequent Visitor

Ignore page filter in Measure but show all values not just the overall total

Hi all,

I am trying to ignore a page filter in one of my measures by using the formula below.

 

Type2 Cases =
CALCULATE(SUM('Table'[Total Case]),'Table'[Type] = "Type2",  ALL(Table[ColorName]))

 

The filter I want to ignore is the "color name"

 

But I get the grand total in all rows not the individual value.

Example of what I get:

CP_2024_0-1704902747337.png

 

I need to keep that measure static regardless if  the "color filter" changes.

CP_2024_2-1704903168773.png

 

Can someone please help me with this?

 

Thank you,

 

Maria

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @CP_2024 ,

 

I created some data:

vyangliumsft_0-1706003278457.png

 

You can try the following dax:

SUMX(
    FILTER('Table','Table'[Type]="Type2"),[Total Case])

vyangliumsft_1-1706003278458.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Hi  @CP_2024 ,

 

I created some data:

vyangliumsft_0-1706003278457.png

 

You can try the following dax:

SUMX(
    FILTER('Table','Table'[Type]="Type2"),[Total Case])

vyangliumsft_1-1706003278458.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Hi @CP_2024 

Please use the REMOVEFILTER function which page level filter you want to remove.
Ref - https://learn.microsoft.com/en-us/dax/removefilters-function-dax
Please find the one example answer
https://community.fabric.microsoft.com/t5/Desktop/Static-and-dynamic-chart-in-same-visual/m-p/362734...

 

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush
www.MyAccountingTricks.com 
https://www.youtube.com/MyAccountingTricks

Hi,

Thank you for your answer but I still get the same result

Type2 Cases =
CALCULATE(SUM('Table'[Total Case]),'Table'[Type] = "Type2"REMOVEFILTERS (Table[ColorName]))

Hi @CP_2024 

Type2 Cases =
CALCULATE(SUM('Table'[Total Case]),'Table'[Type] = "Type2"ALL (Table[ColorName]))
make sure you are using Table[ColorName] filed in page filter

please confirm

Yes, using same column for both 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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