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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Exclude blank from date column as a count

Hi Experts

 

I am trying to count the nunber of dates in a column in Table A, and exclude the (blank) in the column. 

my Measure is 

 

= Calculate(countrows(table A),filter(table A, table A[Column] <> blank())

this is giving me the worng answer

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@Anonymous  You could try NOT(ISBLANK

 

= Calculate(countrows(table A),filter(table A, NOT( ISBLANK( table A[Column]) ) ) )

 

Otherwise why don't you just count the values in the column? It won't count it if it's truly blank: 

 

= COUNT(TableA[Column] )

 

If that doesn't work, it might be possible that it's not actually blank and ="" instead


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

@Anonymous  You could try NOT(ISBLANK

 

= Calculate(countrows(table A),filter(table A, NOT( ISBLANK( table A[Column]) ) ) )

 

Otherwise why don't you just count the values in the column? It won't count it if it's truly blank: 

 

= COUNT(TableA[Column] )

 

If that doesn't work, it might be possible that it's not actually blank and ="" instead


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

thanks Allison....

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors