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! It's time to submit your entry. Live now!
Hi All,
I am trying to count the values in one column in my table but it is counting blank values also. How to neglect blank values. Any ideas?
When i apply count it is counting blank values also. Thanks in advance!
Solved! Go to Solution.
Hi @Viswa1127 ,
Try using either of these:
_option1 = DISTINCTCOUNTNOBLANK(yourTable[yourColumn])
_option2 = COUNT(yourTable[yourColumn]) - COUNTBLANK(yourTable[yourColumn])
Pete
Proud to be a Datanaut!
Hi @Viswa1127 ,
Try using either of these:
_option1 = DISTINCTCOUNTNOBLANK(yourTable[yourColumn])
_option2 = COUNT(yourTable[yourColumn]) - COUNTBLANK(yourTable[yourColumn])
Pete
Proud to be a Datanaut!
@BA_Pete ,
Thanks alot first one I have tried. I am not aware of countblank() function it is solving my problem.
Hi, How it is help in my current scenario? I just want the count of values in column whithout including the blanks!
Hi @Viswa1127
You need to understand how the DAX language works with blanks and Zeros, luckily, we've written a blog on exactly that subject.
This should answer your questions.
How DAX Treats Nulls & Zeros | Power BI Guide | Burningsuit
hope this helps
Stuart
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.