Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
This doesn't have to be a relationship, but I presume, a measure would solve it as well. To clarify what I'm doing, I'm adding two example tables that I came up. Finally, to be clear, my whole report is working fine, and unpivoting columns unfortunately breaks my other measures.
Table1:
Contract | Sportsperson | Nationality | Salary |
Temporary | Messi | Argentina | 97M |
Full Time | Ronaldo | Portugal | 70M |
Short Term | Neymar | Brazil | 76M |
Table2:
Income Type | Messi | Ronaldo | Neymar |
Modelling | 20M | 35M | 10M |
Construction | 5M | 2M | 1M |
Influencer | 200K | 500K | 1M |
I want to ensure, for example, if someone clicks on Argentina, it shows both incomes from the regular salary and side-jobs.
Thanks,
Solved! Go to Solution.
Hi @Anonymous
In Power Query, duplicate Table 2 and unpivot columns so that the names of the players are in rows. You can then link Table 1 to Table 3, and recreate measures as necessary.
Hope this helps.
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hi @Anonymous
In Power Query, duplicate Table 2 and unpivot columns so that the names of the players are in rows. You can then link Table 1 to Table 3, and recreate measures as necessary.
Hope this helps.
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Thanks @TheoC
I was hesitant to do this, because I have to create a number of new measures, which I know, I will have issues with. In fact, one of my measures is already failing, I'm getting a blank calculation. I'm trying to calculate the total gains per year. What do you think is going wrong here?
Unpivotted Table = CALCULATE(SUMX('Table1', 'Table1'[Year] = "2021"), Table1'[Player] = "Messi" || Table1'[Player] = "Ronaldo" || Table1'[Player] = "Neymar")
Or, do you have other recommendations for my initial question?
Many thanks in advance,
Oops! I've managed to solve it, thanks to your support @TheoC
As reference to someone else looking for info, I changed my measure with SUM and FILTER. Created relationships, and now it's working.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |