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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a dataset that includes multiple IDs and expiration buckets. Each ID should only have one count per bucket.
| Dataset | |
| ID | Expired |
| 1 | 30 |
| 1 | 0 |
| 1 | 30 |
| 2 | 60 |
| 2 | 90 |
| 3 | 30 |
| 3 | 30 |
| 3 | 30 |
| Expected Result | |
| Expired | Count |
| 30 | 2 |
| 60 | 1 |
| 90 | 1 |
Thanks!
Solved! Go to Solution.
@KVPBI1 , Use a measure
Distinctcount(Table[ID]) in a visual with Expired
or calculate(Distinctcount(Table[ID]), filter(Table, table[Expired] <>0 ))
Hi @KVPBI1 ,
Or you can use the functions provided by power bi to achieve the results you want. Please refer to the gif below.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@KVPBI1 , Use a measure
Distinctcount(Table[ID]) in a visual with Expired
or calculate(Distinctcount(Table[ID]), filter(Table, table[Expired] <>0 ))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |