Forum Discussion
balar2007
5 years agoRegular Visitor
SWITCH or IF
I need to transform a case statement which i have written in spotfire to Power Bi case WHEN [Formula]~="EBOB" THEN "MOGAS" WHEN [Formula]~="G01" THEN "GASOIL" WHEN [Formula]~="G50" THEN "GASOIL" ...
PhilipTreacy
5 years agoSuper User
Hi balar2007
To look for the string EBOB in [Formula] modify the line to this
CONTAINSSTRING( [Formula], "EBOB" ), "MOGAS"Regards
Phil