Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
78 | |
53 | |
39 | |
35 |
User | Count |
---|---|
92 | |
79 | |
51 | |
48 | |
45 |