Forum Discussion
ALL function strage behaviour
- 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 regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
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