Forum Discussion
CLNersesian
10 years agoKudo Kingpin
DAX formula optimization question
Hello all, I'm setting up some DAX measures to calculate the number of days late for delivered goods. The following formula is an example (I've expanded some of the terms to make it easier to un...
- 10 years ago
CLNersesian try without calculate
Measure = COUNTROWS ( FILTER ('Sales Transaction', 'Sales Transaction'[Late Delivery 45 Days]="Days Late (45+)" ) )
Anonymous
10 years agoNot applicable
While for the second formula you can use this measure:
Let me know if it works for you.
#I'M Not An Expert#
CLNersesian
10 years agoKudo Kingpin
Thanks for the suggetion B129, I originally tried that formula but kept getting an error: "A function 'CALCULATE' has been used in a True/False expression taht is used as a table filter expression. This is not allowed."
This error lead me to adapting the formula as you saw. I think the error is related to how filter interactions relate in PBI - because it works fine in Excel.