Forum Discussion
rvnaresh
3 years agoMicrosoft Employee
Try to use OR function with if and text contains
Hi, I want to categorize the datacenter to a region like the table below and use it in one of my reports. Datacenter Location ABC01 Europe ABC02 Europe ACB01 Europe ACB02 Eur...
Papermain
3 years agoFrequent Visitor
Hello,
Please add the following code in a custom column:
let
StartString = Text.Upper(Text.Start([Column1],2))
in
if StartString = "AB" or StartString = "AC" then "Europe"
else if StartString = "BA" or StartString = "BD" then "Americas"
else if StartString = "CA" or StartString = "CD" then "APAC"
else "Uncategorized"