Forum Discussion
lmat
6 years agoFrequent Visitor
Creating a count measure with OR
Hi, I am new to PowerBI and am working on a dashboard a previously colleague made. There is one measure I am unsure if working as intended. I would like to count all the users who have been in a ...
amitchandak
6 years agoSuper User
I think filter should also be moved inside summarize , other than > 5
,'edw DimFeature'[FeatureName] in {"Action Cards","Drug List","klpAnswer","klpResult","klpStart","Practical Procedures","Video Chapter","videoFull"}
lmat
6 years agoFrequent Visitor
Thank you amitchandak. I am so new to PowerBI I don't fully understand where I move filter to inside summarise - please can you explain? Thanks!
- amitchandak6 years agoSuper User
Try
EngagedUsers = CALCULATE(COUNTROWS(FILTER(SUMMARIZE(filter('edw FactUsage','edw DimFeature'[FeatureName] in {"Action Cards","Drug List","klpAnswer","klpResult","klpStart","Practical Procedures","Video Chapter","videoFull"}),[AppId],"ABCD",[UniqueSessionsCount]),[ABCD]>5)))- lmat6 years agoFrequent Visitor
Unfortunately it doesn't work. I end up with :
- amitchandak6 years agoSuper User
Try like
EngagedUsers = CALCULATE(COUNTROWS(FILTER(SUMMARIZE(calculatetable('edw FactUsage','edw DimFeature'[FeatureName] in {"Action Cards","Drug List","klpAnswer","klpResult","klpStart","Practical Procedures","Video Chapter","videoFull"}),[AppId],"ABCD",[UniqueSessionsCount]),[ABCD]>5)))