The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
What is the most efficient way to do the following calculated column ?
If Table[Column] contains text1, text2, text3, etc then Result1 else
If Table[Column] contains text4, text5, text6, etc then Result2
Can IN function be use to calculated columns ?
I tried the following but not sure if works or I should use other function ?
The criteria should be if column contains "SC", "CON","SI" then CON else
if column contains "AO", "BPO","IO" then OUT else
"OTHERS"
Thanks!
Solved! Go to Solution.
Hello,
CON or OUT =
IF (
'_List SG'[SG] IN { "SC", "CON", "SI" },
"CON",
IF ( '_List SG'[SG] IN { "AO", "BPO", "IO" }, "OUT", "OTHERS" )
)
Best regards,
ElenaN
Hello,
CON or OUT =
IF (
'_List SG'[SG] IN { "SC", "CON", "SI" },
"CON",
IF ( '_List SG'[SG] IN { "AO", "BPO", "IO" }, "OUT", "OTHERS" )
)
Best regards,
ElenaN
Hello,
You could try something like:
CON or OUT =
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
81 | |
80 | |
48 | |
40 |
User | Count |
---|---|
150 | |
110 | |
64 | |
64 | |
57 |