cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Dax problem

I have to create dax for a country with sales but I want that especially this field (dax) won't affect by any slicer, it should be fixed. 

what dax should I write? 

and also if I  want only Europe Margin and that won't be changed by any slicer. for this what dax should I write?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a measure like

calculate(sum(Table[Value]), filter(all(Table[Country]), Table[Country] in {"Germany", "Holland"}))

 

or

 

calculate(sum(Table[Value]), filter(all(Table), Table[Country] in {"Germany", "Holland"}))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try a measure like

calculate(sum(Table[Value]), filter(all(Table[Country]), Table[Country] in {"Germany", "Holland"}))

 

or

 

calculate(sum(Table[Value]), filter(all(Table), Table[Country] in {"Germany", "Holland"}))

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors