Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

ALL Function Giving me Trouble

Hello,   I am using the ALL function to track Total # of shipments, regardless of paid status, in a measure called 'Total Loads.'    On the 'All Data' tab, I can use the slicer on 'Paid Status' ...
  • daxer-almighty's avatar
    5 years ago

    Anonymous 

     

    What you're experiencing is known as the curse of the "auto-exist" feature. Don't be fooled: it's not a feature, it's a bug that Microsoft passes over in silence in the hope that people will just put up with this ugly and dangerous "feature." No, that's not a joke.

    Have you noticed that if you set your date slicer to the full range:

    the figure DOES NOT CHANGE? Well, that's because you don't have any filters on ship date. As soon as you put them on any column in your table, the formula starts to act weird (and randomly into the bargain). The only solution to this type of BUG is to create a proper star schema, which you should ALWAYS do. I mean always with no exception unless you want to create models that will be buggy and which you will not even be able to recognize as such.

    Please learn how to create correct models in Power BI. Then you'll be (almost) free of such ugly bugs.

    I could explain in details why this happens... but I don't think there's a point in it. You can google for "auto-exist in DAX" and you'll certainly find the right articles that describe the problem in minute detail.