Forum Discussion
Count and Date Problems for Desktop (specific issue)
- 5 years ago
Hi baneworth ,
Because you are missing right parentheses after "Filter" function.
Try below measure :
measure = var _index=CALCULATE(MAX('pdlTest'[Index]),FILTER(ALL('pdlTest'),'pdlTest'[CompleteFlag1]=1&&'pdlTest'[CompleteFlag2]=1)) Return CALCULATE(COUNTROWS('pdlTest'),FILTER(ALL(pdlTest),'pdlTest'[CompleteFlag1]=1&&'pdlTest'[CompleteFlag2]=0&&'pdlTest'[Index]<_index))Then you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Hello Kelly,
Thank you for taking the time to reply to my issue!
I did as instrcuted, but when creating the measure the DAX returns error after "_previousindex"
pbix.file attached
It is also the first time for me creating an index table, maybe the issue happened there.
Best regards
Mat
Hi baneworth ,
Because you are missing right parentheses after "Filter" function.
Try below measure :
measure =
var _index=CALCULATE(MAX('pdlTest'[Index]),FILTER(ALL('pdlTest'),'pdlTest'[CompleteFlag1]=1&&'pdlTest'[CompleteFlag2]=1))
Return
CALCULATE(COUNTROWS('pdlTest'),FILTER(ALL(pdlTest),'pdlTest'[CompleteFlag1]=1&&'pdlTest'[CompleteFlag2]=0&&'pdlTest'[Index]<_index))
Then you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
- baneworth5 years agoHelper III
Thank you!