Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |