Forum Discussion
markefrody
Post Patron
4 years agoDAX For Multiple IF Statements and Conditions
Hi, I am using this sample table: I would like to set-up a DAX wherein: If Check 1 = "Export" show "Export", If Check 1 = "Domestic show "Domestic", If Check 1 = "Others", go to Check 2...
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
Result CC = SWITCH ( TRUE (), Data[Check1] = "Export", "Export", Data[Check1] = "Domestic", "Domestic", Data[Check2] = "Yes", "Import", Data[Check3] = "Yes", "Import", Data[Check3] = "No", "Unclassified" )
Jihwan_Kim
Super User
4 years agoHi,
Please check the below picture and the attached pbix file.
Result CC =
SWITCH (
TRUE (),
Data[Check1] = "Export", "Export",
Data[Check1] = "Domestic", "Domestic",
Data[Check2] = "Yes", "Import",
Data[Check3] = "Yes", "Import",
Data[Check3] = "No", "Unclassified"
)
- markefrody4 years ago
Post Patron
Hi Jihwan_Kim. Thank you. Works perfectly!