Forum Discussion
Anonymous
5 years agoNot applicable
Switch Funnction - calculate Status
Hi Community,
below my table.
I currently calculate my status according to the following logic.
If I can also check if there is "7.done" in the column-upcoming milestone, then I would also like to have in the status "done" in it.
Hello @Lachsforelle12 ,
Simply add the criteria to the switching function:
Status= SWITCH( TRUE(), 'MB final'[upcoming Milestone]="7.done","done", 'MB final'[Datediff]<=0,"1.on Time", 'MB final'[Datediff]>=1&&'MB final'[Datediff]<=3,"2.delayed 1-3 month", 'MB final'[Datediff]>=4&&'MB final'[Datediff]<=6,"3.delayed 3-6 month", 'MB final'[Datediff]>=7,"3.delayed >6 month" )
Saludos
KellyHave I answered your question? Mark my position as a solution!
2 Replies
- amitchandak
Super User
Anonymous , As this as the first condition in Switch
[upcoming milestone] ="7.done" , "Done",
- v-kelly-msft
Community Support
Hello @Lachsforelle12 ,
Simply add the criteria to the switching function:
Status= SWITCH( TRUE(), 'MB final'[upcoming Milestone]="7.done","done", 'MB final'[Datediff]<=0,"1.on Time", 'MB final'[Datediff]>=1&&'MB final'[Datediff]<=3,"2.delayed 1-3 month", 'MB final'[Datediff]>=4&&'MB final'[Datediff]<=6,"3.delayed 3-6 month", 'MB final'[Datediff]>=7,"3.delayed >6 month" )
Saludos
KellyHave I answered your question? Mark my position as a solution!