Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

ALL function strage behaviour

Hi All, I am facing strange behaviour of ALL function Let me explain, model is simple in this case and i am having fact table (tableA) and dimension table (TableB). You can also download PBIX here ...
  • selimovd's avatar
    5 years ago

    Hey Anonymous ,

     

    the reason is that you are using a slicer for the same table as you do a COUNTROWS.

    In that case the Auto-Exist feature kicks in, what is a technique to optimize unnecessary calculations in DAX. You can easily solve that by using a star schema, filtering only on dimensional tables and using the IDs from the fact table only to create the relationships.

     

    There is also an article about the details of Auto-Exist:

    Understanding DAX Auto-Exist - SQLBI

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution โœ”๏ธ and give it a thumbs up ๐Ÿ‘
     
    Best regards
    Denis