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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
manishsalanke
Helper II
Helper II

conditional status column

hi, there iam new in power bi need some help in power di dax , 

i have a conditon that need to create a "states column " for orders which are dispatched or pending so accordingly i have to add the column for eg i have two columns one is dilevery date and other is "dsp date"  so conditoin is like if delevery date is not blank and dsp date is blank then the status should be "pending" and if not blank then status will be "completed"

 

need help on which function i can use 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @manishsalanke 

 

I created a demo for you. If "delivery date" is blank and "dsp date" is full "pending", "delivery date" is not blank and "dsp date" is not blank "complete", since I don't know what the data consists of, I made it blank even if there is something other than these conditions.

 

States column =
IF('Table'[delivery date]=blank() && 'Table'[dsp date]<>blank(),"Pending",
IF('Table'[delivery date]<>blank() && 'Table'[dsp date]<>blank(),"Completed"
,blank()))
 

EzgiAslankara_0-1676365329024.png

 

Best regards,

Ezgi Naz Aslankara

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

Anonymous
Not applicable

Hi  @manishsalanke ,

Here are the steps you can follow:

1. Create calculated column.

Flag =
IF (
    'Table'[dilevery date] <> BLANK ()
        && 'Table'[dsp date] = BLANK (),
    "pending",
    IF (
        'Table'[dilevery date] <> BLANK ()
            && 'Table'[dsp date] <> BLANK (),
        "completed",
        "others"
    )
)

2. Result:

vyangliumsft_0-1676940440591.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @manishsalanke ,

Here are the steps you can follow:

1. Create calculated column.

Flag =
IF (
    'Table'[dilevery date] <> BLANK ()
        && 'Table'[dsp date] = BLANK (),
    "pending",
    IF (
        'Table'[dilevery date] <> BLANK ()
            && 'Table'[dsp date] <> BLANK (),
        "completed",
        "others"
    )
)

2. Result:

vyangliumsft_0-1676940440591.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Hi @manishsalanke 

 

I created a demo for you. If "delivery date" is blank and "dsp date" is full "pending", "delivery date" is not blank and "dsp date" is not blank "complete", since I don't know what the data consists of, I made it blank even if there is something other than these conditions.

 

States column =
IF('Table'[delivery date]=blank() && 'Table'[dsp date]<>blank(),"Pending",
IF('Table'[delivery date]<>blank() && 'Table'[dsp date]<>blank(),"Completed"
,blank()))
 

EzgiAslankara_0-1676365329024.png

 

Best regards,

Ezgi Naz Aslankara

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

delivery date is not blank

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.