Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
Solved! Go to Solution.
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.
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
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:
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
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:
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
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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |