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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
izzu
Frequent Visitor

IF multiple statement for 2 Coulmn

Hi trying to create calculated column with IF statment , stucking to add 3 creatirea please advice

1- IF Target Date is Blank = "InTime"

2- IF  Target Date < Resoved Date = "Breach"

3- IF Resolved Date is Blank and Target Date < current date = "Breach" else "InTime"

BreacTicket = IF(ISBLANK('SRVREQ'[TARGET_DATE]),
"InTime",IF(''SRVREQ'[TARGET_DATE]<'SRVREQ'[RESOLVED_DATE],"Breach",
)

1 ACCEPTED SOLUTION
aduguid
Super User
Super User

try this calculated column

BreacTicket = 
IF(
    ISBLANK('SRVREQ'[TARGET_DATE]), 
    "InTime", 
    IF(
        'SRVREQ'[TARGET_DATE] < 'SRVREQ'[RESOLVED_DATE], 
        "Breach", 
        IF(
            ISBLANK('SRVREQ'[RESOLVED_DATE]) && 'SRVREQ'[TARGET_DATE] < TODAY(), 
            "Breach", 
            "InTime"
        )
    )
)

View solution in original post

1 REPLY 1
aduguid
Super User
Super User

try this calculated column

BreacTicket = 
IF(
    ISBLANK('SRVREQ'[TARGET_DATE]), 
    "InTime", 
    IF(
        'SRVREQ'[TARGET_DATE] < 'SRVREQ'[RESOLVED_DATE], 
        "Breach", 
        IF(
            ISBLANK('SRVREQ'[RESOLVED_DATE]) && 'SRVREQ'[TARGET_DATE] < TODAY(), 
            "Breach", 
            "InTime"
        )
    )
)

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors