The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Use the below expression. The value of Left or Remained is considered a number.
Result =
SWITCH (
'Table'[Left or Remained],
1, 'Table'[Resident - Left Housing],
2, "FALSE"
)
Result =
SWITCH (
TRUE (),
Eth[Ethnicity] IN { "A", "B", "H", "I", "M", "P" }, "ALANA",
Eth[Ethnicity] = "N", "International",
Eth[Ethnicity] = "C", "White",
"Unknown"
)
Thanks
Hari
Hi,
Use the below expression. The value of Left or Remained is considered a number.
Result =
SWITCH (
'Table'[Left or Remained],
1, 'Table'[Resident - Left Housing],
2, "FALSE"
)
Result =
SWITCH (
TRUE (),
Eth[Ethnicity] IN { "A", "B", "H", "I", "M", "P" }, "ALANA",
Eth[Ethnicity] = "N", "International",
Eth[Ethnicity] = "C", "White",
"Unknown"
)
Thanks
Hari