cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pavel_severov
Advocate I
Advocate I

Ignoring filter in the measure

Hello!

Please suggest - how to compose the "Depts of all Regions" measure, for the example on the screenshot, in a right way?

Currently it is returning "3". But correct result must be "5".

Here is the link to PBIX file with this example - https://disk.yandex.ru/d/6vaJZBUwV2p3bA

pavel_severov_0-1624637089925.png

 

 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @pavel_severov ,

change your formula to ALL():

27-06-_2021_00-51-10.png

 

As parry2k mentioned: Auto-exist may play a rule in your example.

Read the following articel from Matco Russo: https://www.sqlbi.com/articles/understanding-dax-auto-exist/

or watch the video of Albert Ferrari: Auto-exist on clusters or numbers - Unplugged 22 on YouTube:

https://www.youtube.com/watch?v=aRntX-HiiN8

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

6 REPLIES 6
FrankAT
Community Champion
Community Champion

Hi @pavel_severov ,

change your formula to ALL():

27-06-_2021_00-51-10.png

 

As parry2k mentioned: Auto-exist may play a rule in your example.

Read the following articel from Matco Russo: https://www.sqlbi.com/articles/understanding-dax-auto-exist/

or watch the video of Albert Ferrari: Auto-exist on clusters or numbers - Unplugged 22 on YouTube:

https://www.youtube.com/watch?v=aRntX-HiiN8

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

@FrankAT, thanks for the links! I was not aware of auto-exist.
Even Microsoft official "ALL()" documentation has a link to https://docs.microsoft.com/en-us/dax/all-function-dax :-)))

But, isn't it real underwater rock? How many pitfalls are still in DAX?

parry2k
Super User
Super User

@pavel_severov it looks simple but it is not. There is a concept of auto exist, if you are not using star schema, you can run into issues and this is exactly the use case of that.

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2kwrote:

> There is a concept of auto exist, if you are not using star schema, you can run into issues and this is exactly the use case of that.

Sorry I can't understand your explanation. Please try one more time with more details

parry2k
Super User
Super User

@pavel_severov it should be ALL(Dept) not ALL(Dept[Regions])

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k, but I need to ignore only Depts[Region] filter. All other filters must remain.

This is very simplified test/example. In real report there are lot of other fields and filters.

I can't understand why in situation like this ALL(Depts[Region]) doesn't work properly.

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors