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 Team,
I am trying to count only Code A & B if it same in any ID , any thoughts
| ID | Code |
| 1002 | A |
| 1002 | B |
| 1002 | C |
| 1003 | A |
| 1003 | D |
| 1003 | C |
| 1004 | A |
| 1004 | B |
| 1005 | A |
| 1005 | C |
| 1005 | D |
| id | A | B | C | D |
| 1002 | 1 | 1 | 1 | |
| 1003 | 1 | 1 | 1 | |
| 1004 | 1 | 1 | ||
| 1005 | 1 | 1 | 1 |
Result will be 2 as a count , A & B for 1002 & 1004 as per criteria
Solved! Go to Solution.
Hi,
I am not sure I fully understood, but try something like this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hello
Please try this measure
Hello
Please try this measure
Thanks it working correctly.
Hi,
I am not sure I fully understood, but try something like this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Amazing approach , Could you please add 1 more thing how can display 1 ( which are matching) by DAX in same Measures
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |