Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
146 | |
72 | |
63 | |
52 | |
51 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |