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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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