Forum Discussion
aaron797
6 years agoAdvocate I
Two active joins? Need data modelling advice
I have built a dashboard to display survey results, however now i am trying to integrate a filter to swap between different Surveys dates (Categorical value, not an actual date). The tricky part is t...
- Anonymous6 years agoJust see the patric video(custom keys) just now he launched on guy in cube you tube channel.
So first go to second table which is partition table and click on add column and then click on index column.
So you will have one index which can be used as custom key. Then click on merge queries.
When you merge the queries it will show you table at the end of column list from there click arrow icon and just select index column.
Now you have key to join both table in many to one direction.
Another workaround for this is you need to write dax and need to merge both tables into single table and move total column to first table.
Thanks
Pravin
If it resolves your problem mark it as a solution and give Kudos.
Anonymous
6 years agoNot applicable
Just see the patric video(custom keys) just now he launched on guy in cube you tube channel.
So first go to second table which is partition table and click on add column and then click on index column.
So you will have one index which can be used as custom key. Then click on merge queries.
When you merge the queries it will show you table at the end of column list from there click arrow icon and just select index column.
Now you have key to join both table in many to one direction.
Another workaround for this is you need to write dax and need to merge both tables into single table and move total column to first table.
Thanks
Pravin
If it resolves your problem mark it as a solution and give Kudos.
So first go to second table which is partition table and click on add column and then click on index column.
So you will have one index which can be used as custom key. Then click on merge queries.
When you merge the queries it will show you table at the end of column list from there click arrow icon and just select index column.
Now you have key to join both table in many to one direction.
Another workaround for this is you need to write dax and need to merge both tables into single table and move total column to first table.
Thanks
Pravin
If it resolves your problem mark it as a solution and give Kudos.
aaron797
6 years agoAdvocate I
Thanks PR, I beleive your solution to this would also work so I will mark it as solved.
However I actually solved this just now by creating a Merged Column of both [Department] and [Survey] in both tables, and i joined on that. Which worked!! I got the idea from this website (https://radacad.com/relationship-in-power-bi-with-multiple-columns)