cancel
Showing results for 
Search instead for 
Did you mean: 
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   |

 

 

3 ACCEPTED SOLUTIONS

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


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

Eno1978

 

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

 

Works!

View solution in original post

Eno Apologies.

 

The COUNTA measure does eliminate blanks.  

View solution in original post

3 REPLIES 3

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


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

Eno Apologies.

 

The COUNTA measure does eliminate blanks.  

View solution in original post

Eno1978

 

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

 

Works!

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors