Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All,
I am trying to create a measure or measures, which can give me an overall figure for each text value that appears within my dataset.
I have one column that has a range of text values in it. Which summaries some factors that i am trying to count.
For example:
| Client ID | Factors |
| 1100000000 | AA |
| 1100000001 | AA, AB |
| 1100000002 | AA, AB, AC |
| 1100000003 | AA |
What i am trying to do is create a measure that can count all of these in one go. Instead of what i am doing now which would be:
Solved! Go to Solution.
Hi, @Warner ;
You could modify it by the following:
Test = CALCULATE(COUNTROWS('Contact data'),FILTER(ALL('Contact data'),'Contact data'[Factors] in {"AA","AA, AB"}))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Warner ;
You could modify it by the following:
Test = CALCULATE(COUNTROWS('Contact data'),FILTER(ALL('Contact data'),'Contact data'[Factors] in {"AA","AA, AB"}))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Test = DISTINCTCOUNT('Contact data'[Factors])
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.