Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
hi all...
I have a column value using related.
for example, how do i create a column, if country has Asia, then "Asia" else "others"
I am not able to use conditional column? Any advice is grateful.
Solved! Go to Solution.
@Anonymous
try
SWITCH(
TRUE(),
CONTAINSSTRING(Table[Country],"AsiaPac")=TRUE(), "AsiaPac",
CONTAINSSTRING(Table[Country],"Asia")=TRUE(), "Asia",
"Others"
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Hey @Anonymous ,
Hey You can try below one also,
@sanalyticsThanks,it work, i tried using 3 conditional but not sure how to do it.
any idea
condition1 - if table contain Asia - then asia
condition1 - if table contain AsiaPac - then asiaPc
else Others
@Anonymous
try
SWITCH(
TRUE(),
CONTAINSSTRING(Table[Country],"AsiaPac")=TRUE(), "AsiaPac",
CONTAINSSTRING(Table[Country],"Asia")=TRUE(), "Asia",
"Others"
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @Anonymous
it should be enough:
Country = IF(FIND("Asia"),RELATED(CountryCode[Country])) > 0, "Asia", "Others")do not hesitate to give a kudo to useful posts and mark solutions as solution
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!