Forum Discussion
oester
8 years agoAdvocate II
DAX performance FILTER & RELATED issue
Hi there, I was facing severe performance issues on this DAX formula: CALCULATE(COUNTROWS('Measure Touchpoint');FILTER('Touchpoint Attribute';'Touchpoint Attribute'[IsIn30PC]=1)) It never...
Ashish_Mathur
8 years agoSuper User
Hi,
Since you are comparing a column to a fixed value, you do not need the FILTER function. Try this
=CALCULATE(COUNTROWS('Measure Touchpoint');'Touchpoint Attribute'[IsIn30PC]=1)
Does this work?
oester
8 years agoAdvocate II
Thanks for your reply.
Isn't this just a syntactical shortcut of the FILTER version? Anyway, my questions is about the difference between using RELATED or not in a FILTER statement
- Ashish_Mathur8 years agoSuper User
Hi,
As long as there is a relationship between Measure Touchpoint table to the Touchpoint attribute table, my fomrula should work fine. Have you tried it?
- oester8 years agoAdvocate II
Yes, it works. But still, I'm wondering about the bad performance when using RELATED in my given example.