Forum Discussion
Create a relationship between two data tables via linked lookup tables
- 3 years ago
Hi,
Please find attached the PBI file.
Hope this helps.
Thanks Anonymous
I uploaded the files to One Drive here, hope it works: Shared Files
This is all fabricated data, there is nothing private or confidential.
Yes, Sector in the table is coming from the Sector Lookup table. I tried creating a measure as below, not sure if I was doing it quite how you suggested:
(Although I think this has helped me understand why the total is showing as 300 in the original benchmark weight column too.)
I tried playing around with other filter conditions but since there is no relationship between the Benchmark Data table and Account Lookup I could not figure out a way to apply the correct filter to BenchmarkCode.
Maybe I need a change to my data model to have a unique code which is a combination of AccountCode and BenchmarkCode? But this seems like it would create a lot of duplicate data.
Appreciate your help,
Tim
Hi,
Please find attached the PBI file.
Hope this helps.
- tj_horrocks3 years agoNew Member
Brilliant! Thanks Ashish_Mathur
So I create a many-to-many relationship between Account Lookup and Benchmark Data and then I can use that relationship in my Benchmark Weight measure.
I'm not too sure on when it is good practice to use many-to-many relationships, I'll look into this.
Thanks again, Tim
- Ashish_Mathur3 years agoSuper User
You are welcome.