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!View all the Fabric Data Days sessions on demand. View schedule
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!
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!