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
Solved! Go to Solution.
Hi @JamesMurg
You haven't defined the correct structure for the formula. First of all, IF takes 3 parameters (condition, what you will do if condition is met, otherwise).
On the other hand, if you want to check if Destination ID is IOMA, IOMRT, UK653 or IOM you cannot use "AND", you should use "OR". Also, the formula cannot take more than two parameters, so you will need to use "||" operator.
Therefore you should have something like:
Column 2 =
IF('Report 1'[Destination ID]="IOMA" ||'Report 1'[Destination ID]="IOMRT"|| 'Report 1'[Destination ID]="UK653"|| 'Report 1'[Destination ID]="IOM",
"Isle of Man",
<value in other case>)
Hi @JamesMurg
You haven't defined the correct structure for the formula. First of all, IF takes 3 parameters (condition, what you will do if condition is met, otherwise).
On the other hand, if you want to check if Destination ID is IOMA, IOMRT, UK653 or IOM you cannot use "AND", you should use "OR". Also, the formula cannot take more than two parameters, so you will need to use "||" operator.
Therefore you should have something like:
Column 2 =
IF('Report 1'[Destination ID]="IOMA" ||'Report 1'[Destination ID]="IOMRT"|| 'Report 1'[Destination ID]="UK653"|| 'Report 1'[Destination ID]="IOM",
"Isle of Man",
<value in other case>)
I guess you wanted to write a measure like this (even if I'm not sure that all the 4 ID described should be evaluated in an AND condition. Can they be all true at the same time?):
Column 2 =
IF(
AND(
'Report 1'[Destination ID]="IOMA",
'Report 1'[Destination ID]="IOMRT",
'Report 1'[Destination ID]="UK653",
'Report 1'[Destination ID]="IOM"),
"Isle of Man")
Hi,
it looks like it is not well formatted. you should firstly check the commas and parenthesis position.
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 |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 6 | |
| 5 |