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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Rio007
Helper I
Helper I

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
Super User
Super User

Hi @Rio007 

you can write it like this

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

View solution in original post

2 REPLIES 2
Rio007
Helper I
Helper I

@tamerj1  Thank You so much!

 

tamerj1
Super User
Super User

Hi @Rio007 

you can write it like this

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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