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
ahassan44
Frequent Visitor

How to build a measure that select all except the selected slicer dimension?

Hey, 

 

I have a staff location table, and a transaction location table, and I want build a measure that calculate revenue that addsall transaction locations except the selected staff location.

 

Is there a way to accomplish that without adding a new column since I can only add measures to my model?   

 

Thanks!

2 REPLIES 2
v-yetao1-msft
Community Support
Community Support

Hi @ahassan44 

Can you provide a detail sample to show your data ? We have no way of providing specific formulas without knowing your data .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@ahassan44 , Assume you want to count or sum from the transaction table

 

then

calculate(countrows(transaction ), filter(transaction , not transaction[Location] in values(Staff[Location]) ) )

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.