Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone
I have two tables in my CRM, one called Contact and the other called CP. These are related on the contactid field using a Many to Many relationship with a Single Cross-filter direction.
The CP table contains a field called preferencesname which can contain one or many values (e.g. A or B or C etc).
I want to create fields in the Contact table which basically say "... if the CP table contains value A for a specific contactid then put Yes otherwise No". I would then do the same for value B, value C and so on, all in separate fields.
So, I want to end up with something like this for each contactid:
| contactid | Name | Value A | Value B | Value C | Value D |
| 12345 | Jon | Yes | No | No | Yes |
What would be the best way to acheive this please?
Many thanks
Jon
Solved! Go to Solution.
I'd do this in power query and pivot the column, preferencesname.
Hi @jonclay ,
Since you did mention many-to-many relationships, can you provide sample data as well as expected results?
Best regards,
Community Support Team_ Scott Chang
I'd do this in power query and pivot the column, preferencesname.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!