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

All function is not ignoring slicer in measure

Hi Everyone,

 

I want to ignore a 'name' slicer in measure. I have a table with multiple columns. I want to filter the data with the manufacturer and model, it is working properly but when I select 'name' Slicer, the value again changes. I wanted to ignore the 'name' slicer.

 

measure: calculate(average(sales), All(Table(name)))

 

Table:

 

manufacturermodelnamesales
GEIICSCA10
GEIadssB20
GEIssdC30
ClientICSCA20
ClientadssD40
ClientssdE30
ClientICSCC20
ClientadssG10
CustomerssdD40
CustomerICSCE30
CustomeradssF50

 

Can anyone help me know what I'm doing wrong in ignoring that slicer? Any help is appreciated.

 

Thanks

7 REPLIES 7
Greg_Deckler
Super User
Super User

I whipped up this quick PBIX. Seems to work for me that the measure is not impacted by a Name slicer, see attached PBIX file.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

You can switch of the interaction between visual and name slicer

Interactions.png

Anonymous
Not applicable

Thanks, but I want to select those names.

Hi @Anonymous,

I'd like to suggest you use allexcept function to define which fields can interact with calculations formulas:

Using ALLEXCEPT versus ALL and VALUES 

Regards,

Xiaoxin Sheng

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

I'll look, but you are taking an average of a text field?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

By mistake, I used the name on average, but it's the sales field on average.

 

measure: calculate(average(sales),All(table(name)))

Anonymous
Not applicable

Try to use filter first with manufacturer and model slicer, then try with name slicer. Then it will change.

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.