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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Count Blank Rows in a Table

Hi,

 

Is there a simple measure that counts all blank rows in a table? Additionally, is there a measure that counts all duplicates in a table? 

 

Any advice is much appreciated.

 

Cheers

 

Nathan

1 ACCEPTED SOLUTION

@Anonymous , Try like

COUNTROWS(ALL('DateTime')) - COUNTROWS(ALLNOBLANKROW('DateTime'))

COUNTROWS(ALL('Table')) - COUNTROWS(ALLNOBLANKROW('Table'))

Refer

https://docs.microsoft.com/en-us/dax/allnoblankrow-function-dax

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , You have a function countblank for column.

https://docs.microsoft.com/en-us/dax/countblank-function-dax

 

Do want count complete blank row ?

Anonymous
Not applicable

Thank you for the reply @amitchandak !!

 

I understand there is a countblank funtion, but i'm not needing to count blank rows in a column, i need to count the number of blank rows in my entire table. Would you know what to do?

@Anonymous , Try like

COUNTROWS(ALL('DateTime')) - COUNTROWS(ALLNOBLANKROW('DateTime'))

COUNTROWS(ALL('Table')) - COUNTROWS(ALLNOBLANKROW('Table'))

Refer

https://docs.microsoft.com/en-us/dax/allnoblankrow-function-dax

Anonymous
Not applicable

Thank you again @amitchandak,. This does work, however i realise it is calculating whether the row is entirelly blank. I'm looking for a measure that calculates how many blank cells there are in a table. 

 

I hope this makes sense, i did word the initial question wrong so i will mark your reply as a solution.  If you are able to advice me on how to count the number of blank cells in a table that would be great. 

 

Cheers

 

Nathan 

 

@Anonymous , Multiple by No of columns.  [Blank Rows] * no of columns

 

Or countblank(Table[Col1])+ countblank(Table[Col2])+ countblank(Table[Col3) + countblank(Table[Col4]) + .....

 

@Anonymous , do you need more help on this

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.