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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX comparison operations do not support comparing values of type Date with values of type Text

Hello,

 

today i got the following error:

MisterjBI_0-1660649240230.png

Goal:
I want to create a visual to show the count of different rows in one table. 

 

My solution: 

NoEmmPlayout = COUNTROWS(FILTER(STBs,STBs[SGIS pre migration status] = "ReadyForMigration" && STBs[Settings completion time (First contact to SGIS)] = "" && STBs[Nagra_EMM_Playout] = "" || STBs[Nagra_EMM_Playout_Status] = "" && STBs[SGIS pre migration time]>24 ))
 
Thats when i got the error. Should i use some other expression?

Thank you!


Kind Regards
Jannis
1 ACCEPTED SOLUTION

Make sure that you replace every "" with BLANK()

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

That was it! Fairly simple. 😄

Thanks my friend. 

BR
Jannis

ribisht17
Super User
Super User

  @Anonymous 

NoEmmPlayout = COUNTROWS(FILTER(STBs,STBs[SGIS pre migration status] = "ReadyForMigration" && STBs[Settings completion time (First contact to SGIS)] = "" && STBs[Nagra_EMM_Playout] = "" || STBs[Nagra_EMM_Playout_Status] = "" && STBs[SGIS pre migration time]>24 ))

 

Somewhere above, bold, you are trying to compare Date with Text which is not allowed

 

You need to make use of format as https://community.powerbi.com/t5/Desktop/Error-DAX-comparison-operations-do-not-support-comparing-values/m-p/559413

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!

My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

 

Anonymous
Not applicable

Thanks. 

The topic of that thread is "comparing values of type Text with values of type Int" 
My topic is "comparing values of type text with values of type date". 

How can i achieve that? Thanks.

PabloDeheza
Solution Sage
Solution Sage

Hi there!

Try replacing STBs[Settings completion time (First contact to SGIS)] = "" with STBs[Settings completion time (First contact to SGIS)] = BLANK()

Let me know if that helps!

Anonymous
Not applicable

Hey,

 

sadly that did not work. 😞

Make sure that you replace every "" with BLANK()

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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