Forum Discussion
Anonymous
8 years agoNot applicable
SWITCH or IF in calculated columns
Hi, I want to create a calculated column named Category from two tables DWSP DInOutdoor DWSP table has column named WSP DInOutdoor has column named InOutdoor Following is the conditio...
- Anonymous8 years ago
Hi Anonymous
You need to use SWITCH().
New col = VAR vInOut = RELATED(DInOutdoor[InOutdoor]) RETURN SWITCH ( TRUE(), Dwsp[Wsp]= "STG".Strategic, vInOut = "Indoor","Indoor", vInout= "Outdoor","Outdoor", "Unknown")Thanks
Raj
- Anonymous8 years ago
Thanks AnonymousRaj for the solution.
Anonymous
8 years agoNot applicable
Hi Anonymous
You need to use SWITCH().
New col =
VAR vInOut = RELATED(DInOutdoor[InOutdoor])
RETURN
SWITCH ( TRUE(),
Dwsp[Wsp]= "STG".Strategic,
vInOut = "Indoor","Indoor",
vInout= "Outdoor","Outdoor",
"Unknown")
Thanks
Raj
- Anonymous8 years agoNot applicable
Thanks Raj for the solution.
- Anonymous8 years agoNot applicable
Thanks AnonymousRaj for the solution.
- ziyabikram966 years agoHelper V
What if the DInOutdoor table is on the Many side? How to use RelatedTable then?