Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I treid creating the below measure but i am not getting the desired results.
If Table 1 InterDomestic is "Outbound" or "Regional" or "International" return "International"
If Table 1 InterDomestic is "Inbound" or "Domestic" return "Domestic"
IntDom =
VAR _InterDomesticValue = SELECTEDVALUE('Table1'[InterDomestic])
RETURN
IF(_InterDomesticValue = "Domestic", "Domestic",
IF(_InterDomesticValue = "Inbound", "Domestic",
IF(_InterDomesticValue = "Outbound", "International",
IF(_InterDomesticValue = "International", "International",
IF(_InterDomesticValue = "Regional", "International"
,"International"))))
| InterDomestic |
| Outbound |
| Outbound |
| Outbound |
| Domestic |
| Regional |
| Inbound |
| Inbound |
| Inbound |
| Inbound |
Result
| InterDomestic | result |
| Outbound | International |
| Outbound | International |
| Outbound | International |
| Domestic | Domestic |
| Regional | International |
| Inbound | Domestic |
| Inbound | Domestic |
| Inbound | Domestic |
| Inbound | Domestic |
Solved! Go to Solution.
Hi @InsightSeeker - Use the below measure, this checks if the value of "InterDomestic" is "Outbound", "Regional", or "International". If it is, it returns "International", otherwise, it returns "Domestic".
IntDom =
VAR _InterDomesticValue = SELECTEDVALUE('Table1'[InterDomestic])
RETURN
IF(
_InterDomesticValue = "Outbound" ||
_InterDomesticValue = "Regional" ||
_InterDomesticValue = "International",
"International",
"Domestic"
)
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Result =
SWITCH(
TRUE(),
MAX(TableName[InterDomestic]) IN {"Outbound", "Regional", "International"}, "International",
MAX(TableName[InterDomestic]) IN {"Inbound", "Domestic"}, "Domestic"
)
Output:
Result =
SWITCH(
TRUE(),
MAX(TableName[InterDomestic]) IN {"Outbound", "Regional", "International"}, "International",
MAX(TableName[InterDomestic]) IN {"Inbound", "Domestic"}, "Domestic"
)
Output:
Hi @InsightSeeker - Use the below measure, this checks if the value of "InterDomestic" is "Outbound", "Regional", or "International". If it is, it returns "International", otherwise, it returns "Domestic".
IntDom =
VAR _InterDomesticValue = SELECTEDVALUE('Table1'[InterDomestic])
RETURN
IF(
_InterDomesticValue = "Outbound" ||
_InterDomesticValue = "Regional" ||
_InterDomesticValue = "International",
"International",
"Domestic"
)
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Does it have to be a measure? I think your DAX will work if you make a calculated column instead of a measure and just change it slightly.
IntDom =
VAR InterDomesticValue = 'Table1'[InterDomestic]
RETURN
IF(_InterDomesticValue = "Domestic", "Domestic",
IF(_InterDomesticValue = "Inbound", "Domestic",
IF(_InterDomesticValue = "Outbound", "International",
IF(_InterDomesticValue = "International", "International",
IF(_InterDomesticValue = "Regional", "International"
,"International"))))
@bevicor I don't want to create a calculated column; instead, I would prefer to achieve it via a measure. Is it possible?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 192 | |
| 125 | |
| 99 | |
| 67 | |
| 48 |