Forum Discussion
Relationship between three tables
- Anonymous4 years ago
Hi cinthiafkc ,
Please follow these steps:
1. Add a Custom column based on the length of the ID_Entity column:
=if Text.Length( Number.ToText( [ID_Entity]) )=2 then "ID_State" else "ID_City"2.Click Custom column-->Pivot columns-->use ID_Entity as Values
After applying these changes, the relationships would be automatically built:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi cinthiafkc ,
Please follow these steps:
1. Add a Custom column based on the length of the ID_Entity column:
=if Text.Length( Number.ToText( [ID_Entity]) )=2 then "ID_State" else "ID_City"
2.Click Custom column-->Pivot columns-->use ID_Entity as Values
After applying these changes, the relationships would be automatically built:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.