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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.