Forum Discussion
using two calculated columns in if statement
- Anonymous2 years ago
Hi jpbi23 ,
Idrissshatila Thanks for your concern about this case!
The reason you can't find the table Forms when you create a calculated column in the Opportunity table is because the Opportunity table is on the "one" side. After my test, you can't find the Forms table even with the RELATED function.
I don't quite understand, your table Opportunity and table Forms are in a one-to-many relationship and Opportunity is on the "one" side. You need to create the calculated column in Opportunity, which is impossible because columns in the "many" side of the table cannot be applied to columns in the "one" side of the table, only columns in the "one" side of the table can be applied to the "many" side..
Here are my sample datasets:You can only use this DAX in the Forms table to achieve this:
Column = IF( 'Forms'[POV] = "No" && RELATED(Opportunity[Spotlight]) = "Yes", "True", "False" )
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
opportunity is (one relationship)
Forms is (many relationships)
both joined on opportunity id key. One opportunity can have multiple forms.
Hi jpbi23 ,
Idrissshatila Thanks for your concern about this case!
The reason you can't find the table Forms when you create a calculated column in the Opportunity table is because the Opportunity table is on the "one" side. After my test, you can't find the Forms table even with the RELATED function.
I don't quite understand, your table Opportunity and table Forms are in a one-to-many relationship and Opportunity is on the "one" side. You need to create the calculated column in Opportunity, which is impossible because columns in the "many" side of the table cannot be applied to columns in the "one" side of the table, only columns in the "one" side of the table can be applied to the "many" side..
Here are my sample datasets:
You can only use this DAX in the Forms table to achieve this:
Column =
IF(
'Forms'[POV] = "No" && RELATED(Opportunity[Spotlight]) = "Yes",
"True",
"False"
)
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.