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

Keeping certain measures for separate slicers

How can I attach certain measures to specific departments in my slicer and have the measures stick to that specific department so when i switch to a different one, that measure will still be there from before and i will not have to drag it over each time i want to use it?

 

I have attached screenshots to provide better understanding (the purple dotted line is the measure that i am using):

 

watkinb_2-1601041704035.png

watkinb_3-1601041756602.png

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to ad an ALL filter to you measure something similar to this:

 

MEASURE = CALCULATE (SUM(Table[Column]), FILTER(ALL(Table[Department]), Table[Department] = "Department") )

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous,
You can take a look at the following blog about all functions and add to your expression, then these formulas will only respond with specific field filters:

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to ad an ALL filter to you measure something similar to this:

 

MEASURE = CALCULATE (SUM(Table[Column]), FILTER(ALL(Table[Department]), Table[Department] = "Department") )

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.