Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have the table Like below
Proposed Date Delivery Date Saftey Actual Safetycover RiskType
13-11-2021 21-11-2021 2 3 urgentoverdue
14-11-2021 2 3 standardOverdue
16-11-2021 21-11-2021 2 3 oldoverdue
13-11-2021 21-11-2021 2 3 lack
14-11-2021 2 3 Advance
16-11-2021 21-11-2021 2 3 Requirements in past
i want add two colmn value based on the condions if Risktype contains overdue . values taken delivey date + safey actuals . if delivery date blank values taken a proposed delivery date.
if risk type not contain a ovedue like lack ,advance, Requirements in past . values taken delivery date+ safetycover.
. if delivery date blank values taken a proposed delivery date.
Solved! Go to Solution.
Hi @Anonymous
Try this:
Column 1 =
Var _A = CONTAINSSTRING([RiskType],"overdue")
Var _D = [Delivery Date ]
return
if(_A=TRUE(),
if(ISBLANK(_D),[Proposed Date],_D+2),
if(ISBLANK(_D),[Proposed Date],_D+[Safetycover]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @Anonymous
Try this:
Column 1 =
Var _A = CONTAINSSTRING([RiskType],"overdue")
Var _D = [Delivery Date ]
return
if(_A=TRUE(),
if(ISBLANK(_D),[Proposed Date],_D+2),
if(ISBLANK(_D),[Proposed Date],_D+[Safetycover]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @Anonymous
Try these codes:
Column 1 =
Var _A = CONTAINSSTRING([RiskType],"overdue")
Var _D = [Delivery Date ]
return
if(_A=TRUE(),
if(ISBLANK(_D),[Proposed Date],_D+2))
Column 2 =
Var _A = CONTAINSSTRING([RiskType],"overdue")
Var _D = [Delivery Date ]
return
if(_A=FALSE(),
if(ISBLANK(_D),[Proposed Date],_D+[Safetycover]))
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |