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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Counting empty row in a date Column

Hello friend,

 

Thank You for helping figuring out this DAX formula. I'm trying to count empty row in a date column. my initial code was 

Pending = COUNTROWS( FILTER('Fact-Tasks','Fact-Tasks'[Closed], ) = "Blank")) I get no error nor data from this calculated measure.
Now while using it in my report I get this error " Error Message:
MdxScript(Model) (4, 61) Calculation error in measure 'Fact-Tasks'[Pending]: DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. "
 
I rewrite the code to be 
Pending = COUNTROWS( FILTER(CONVERT('Fact-Tasks','Fact-Tasks'[Closed], STRING) = "Blank")) but It's not a valid expression.

Thank You very much for Your help.
1 ACCEPTED SOLUTION
tamerj1
Community Champion
Community Champion

Hi @Anonymous 

you can write it like this

Pending = COUNTROWS( FILTER('Fact-Tasks','Fact-Tasks'[Closed]= BLANK ( ) ))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@tamerj1  Thank You so much!

 

tamerj1
Community Champion
Community Champion

Hi @Anonymous 

you can write it like this

Pending = COUNTROWS( FILTER('Fact-Tasks','Fact-Tasks'[Closed]= BLANK ( ) ))

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.