Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all. Me again.... I've been struggling with a measure formula for a few days building on from the last one.
I've looked at a few posts with similar problems but can't seem to sort the formula....
I'm trying to count using a measure, active contacts of a specific grade.
My active contacts measure (that works) is:
Solved! Go to Solution.
@Anonymous you mean you want the grade to be 200000001 OR 200000002? I assume it cannot be both at the same time ...
Also, the first argument of FILTER needs to be a table and you are passing a column.
Second, you are not using the AND operator correctly.
Anyway, you don't need to user the FILTER statement in that case. Maybe this will do :
My_Measure =
CALCULATE(
DISTINCTCOUNT('CE vwContact'[Rics_contactno]),
'CE vwContact'[Rics_LapsedDate]<=TODAY(),
'CE vwContact'[Rics_MemberGrade] IN {'200000001','200000002'}
)
Thank you so much! That sorted it. The only thing I had to chance was putting " instead of ' around the 200000001 numbers. Thank you!!
@Anonymous you mean you want the grade to be 200000001 OR 200000002? I assume it cannot be both at the same time ...
Also, the first argument of FILTER needs to be a table and you are passing a column.
Second, you are not using the AND operator correctly.
Anyway, you don't need to user the FILTER statement in that case. Maybe this will do :
My_Measure =
CALCULATE(
DISTINCTCOUNT('CE vwContact'[Rics_contactno]),
'CE vwContact'[Rics_LapsedDate]<=TODAY(),
'CE vwContact'[Rics_MemberGrade] IN {'200000001','200000002'}
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |