Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Applicable88
Impactful Individual
Impactful Individual

Count all cells, including the blank fields

Hello,

 

I want to create a table visual with values from two different tables. One is the Shelftable on the one side and the n-table with all orders. My problem lies in the count of blank fields:

 

Powerbi does not count the blank fields:

Applicable88_1-1640167499874.png

I can only see the fields because I checked "Show empty values".

The count I want is 13? And is there a version for distinct count and all counts?

 

Thank you very much in advance.

Best. 

 

 

 

 

 

 

3 REPLIES 3
amitchandak
Super User
Super User

@Applicable88 , Try Countrows(Table)

 

Or Countx(Table, Table[Column]+0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

thank you for the quick response @amitchandak , but both don't work:

Applicable88_0-1640168621331.png

isn't "+0" only for displaying values as 0 instead of leaving it empty?  But my problem that it should count that cell as well. I think the problem is in fact due to the field is empty and from another table, where it has no value instead of a simple empty field in the same table. 

Hope there is a solution to that. 

Best. 

 

@Applicable88 , Total 11 is already the correct sum.  Do want add 1 for each blank. Then what is causing a blank should be know

Sum(Table,coalesce([value],1))

 

But the help when value is blank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.