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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
magtuto
Helper I
Helper I

Count All Rows No Blank

Hello All,

 

I thought this would be simple to do.  Im just finding it difficult to create a measure that counts the number of rows, ignoring all blank rows.  I thought that the 'ALLBLANKROW' function would be ideal.  Its not nworking for me.

 

Basically, I have the following column in the table that I want to count and it cointained one blank.  I dont want to count this blank so when I do a count I want 3.  Whats is the best way to to this?

 

Last Login |

23/09/16   |

22/09/16   |

                 |

21/09/16   |

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@magtuto Have you tried =COUNTA('table'[column])? Counts the values, not blank in my quick test.

View solution in original post

4 REPLIES 4
kousar99
Helper I
Helper I

@magtuto  Hi

could please tell how you created measure for the same

Anonymous
Not applicable

@magtuto Have you tried =COUNTA('table'[column])? Counts the values, not blank in my quick test.

Eno Apologies.

 

The COUNTA measure does eliminate blanks.  

Eno1978

 

Actually I did end up just creating a measure basically that performed COUNTA - COUNTBLANK calculations.

 

Works!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.