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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JedShields
New Member

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.