Forum Discussion
baneworth
5 years agoHelper III
Count and Date Problems for Desktop (specific issue)
Hello All, I don't have to use PowerBI that often so see me as an beginner. I will try my best to describe this issue as clear as i can. Products go from "Build" to "Test" to "Prep" to "Comp...
- 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!
v-kelly-msft
5 years agoCommunity Support
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!
baneworth
5 years agoHelper III
Thank you!