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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JedShields
Regular Visitor

Looking for help with IF AND statement mixing dates and text

Hello all,

 

I'm fairly new to DAX and need some help with the following code:

MS7 FC Exception =
        IF(ISBLANK([Column A DATE])
        && [Column B DATE] >= 1
        && [Column C DATE]>= 1
        && [Column D TEXT]= "No",
        "Issue", "No Issue"
)

Columns A, B and C all have dates.  I need a blank in A and anything with a date in B and C.

Column D stores text.  I'm looking for a "No".

I'm getting an error that states DAX comparison operations do not support comparing values of type Text with values of type Integer.

How do I resolve this?

Cheers,
 
Jed
1 ACCEPTED SOLUTION
manvishah17
Solution Supplier
Solution Supplier

Hi @JedShields ,
MS7 FC Exception =
IF(
ISBLANK([Column A DATE]) &&
NOT(ISBLANK([Column B DATE])) &&
NOT(ISBLANK([Column C DATE])) &&
[Column D TEXT] = "No",
"Issue",
"No Issue"
)

View solution in original post

2 REPLIES 2
manvishah17
Solution Supplier
Solution Supplier

Hi @JedShields ,
MS7 FC Exception =
IF(
ISBLANK([Column A DATE]) &&
NOT(ISBLANK([Column B DATE])) &&
NOT(ISBLANK([Column C DATE])) &&
[Column D TEXT] = "No",
"Issue",
"No Issue"
)

Excellent, many thanks.  NOT ISBLANK is a much better way of writing it 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors