Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I need help with a Metrics that will do a Distinct Count of a user column with a filter of Count of User > 1.
The table below is and example the regular distinct count. Both distinct count and count are metrics.
| Month | Year | User | Count | Distinct Count |
| JAN | 2019 | User1 | 2 | 1 |
| JAN | 2019 | User2 | 2 | 1 |
| JAN | 2019 | User3 | 1 | 1 |
| JAN | 2019 | User4 | 5 | 1 |
| JAN | 2019 | User5 | 3 | 1 |
| FEB | 2019 | User1 | 4 | 1 |
| FEB | 2019 | User2 | 2 | 1 |
| FEB | 2019 | User3 | 1 | 1 |
| FEB | 2019 | User5 | 1 | 1 |
| 21 | 9 |
Below is what I would want (Distinct Count). I have tried the following formula so far with no success. It would give me the regular distinct count.
| Month | Year | User | Count | Distinct Count |
| JAN | 2019 | User1 | 2 | 1 |
| JAN | 2019 | User2 | 2 | 1 |
| JAN | 2019 | User4 | 5 | 1 |
| JAN | 2019 | User5 | 3 | 1 |
| FEB | 2019 | User1 | 4 | 1 |
| FEB | 2019 | User2 | 2 | 1 |
| 18 | 6 |
I would appreciate any help on this.
Solved! Go to Solution.
Hi @kshre
You may create a measure like below:
Count =
VAR a =
SUMMARIZE (
Table3,
Table3[Year],
Table3[Month],
Table3[User],
"b", COUNTA ( Table3[User] )
)
RETURN
COUNTROWS ( FILTER ( a, [b] > 1 ) )
Regards,
Hi @kshre
You may create a measure like below:
Count =
VAR a =
SUMMARIZE (
Table3,
Table3[Year],
Table3[Month],
Table3[User],
"b", COUNTA ( Table3[User] )
)
RETURN
COUNTROWS ( FILTER ( a, [b] > 1 ) )
Regards,
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |