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! Request now
Hi all,
Im have one table with two columns, one with the ID and one with text. I want to distincount the ID table but only based if the two filtering critiera is met. For example in the table below, I want to count numbers of ID that contains both "FAST" and "MID" in the Type column (ID nr 1 and 3).
My starting code was:
| ID | Type |
| 1 | FAST |
| 1 | MID |
| 1 | SLOW |
| 2 | SLOW |
| 3 | MID |
| 3 | FAST |
| 4 | FAST |
Solved! Go to Solution.
Hi @Anonymous ,
You can create a measure with below code:-
Measure =
CALCULATE (
DISTINCTCOUNT ('Export Data SE'[ID]),
CALCULATETABLE (
VALUES ( 'Export Data SE'[ID] ),
'Export Data SE'[Type] = "FAST"
),
CALCULATETABLE (
VALUES ( 'Export Data SE'[ID] ),
'Export Data SE'[Type] = "MID"
)
)Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
You can create a measure with below code:-
Measure =
CALCULATE (
DISTINCTCOUNT ('Export Data SE'[ID]),
CALCULATETABLE (
VALUES ( 'Export Data SE'[ID] ),
'Export Data SE'[Type] = "FAST"
),
CALCULATETABLE (
VALUES ( 'Export Data SE'[ID] ),
'Export Data SE'[Type] = "MID"
)
)Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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 |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 8 | |
| 8 | |
| 8 |