We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All,
I would like to create a calculated column using IF. I am not sure how to use multiple Logical test.
For eg:
I have a set of locations. And each location belong to a certain region. It looks something like the image below.
I want to create a calculated column called "Region" in PowerBI, where it checks what location and allot the particular region.
Can I please know how can I implement that?
Any help would be appreciated!
Thank you!
Megha
Solved! Go to Solution.
Hi @Anonymous ,
You can try below code:-
Region =
IF (
LOCATION[Location] IN { "PL60", "MA81", "MA82" },
"EMEA",
IF ( LOCATION[Location] IN { "2201" }, "APAC", "NA" )
)Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
You can try below code:-
Region =
IF (
LOCATION[Location] IN { "PL60", "MA81", "MA82" },
"EMEA",
IF ( LOCATION[Location] IN { "2201" }, "APAC", "NA" )
)Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 34 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 38 | |
| 34 | |
| 23 |