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,
I want to count how many types in the table below:
Name | Type |
| A | 1 |
| B | 2 |
| C | 2 |
| D | 1 |
| E |
I used the code following:
Solved! Go to Solution.
Hi, @Anonymous
There is a function called DISTINCTCOUNTNOBLANK which avoid count blank value.
So to count of Type, just write a measure DISTINCTCOUNTNOBLANK( Table[Type] )
Hope it will work for you.
Hi, @Anonymous
There is a function called DISTINCTCOUNTNOBLANK which avoid count blank value.
So to count of Type, just write a measure DISTINCTCOUNTNOBLANK( Table[Type] )
Hope it will work for you.
Thank you!
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 |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |