Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I am strugling with most probably not that difficult pie chart creation.
Basically I have 2 tables related to investment founds:
What I would like to see is a total percentage of shares and bonds. The result should be something like this:
Shares percentage in this example should be (100%*100+40%*200+80%*300)/700
As I understand as a values for a piechart I should use sum of values from the left table. My question is what to use as a legend. It may be that the right table is wrong and I should use something like the one below, but then how to create a link between those two tables.
pbix is available here:
Solved! Go to Solution.
Hi @Tomek1982 ,
Please create a new table with column "structure" and add a column with total value as below.
I modified your demo file as attached. Let me know if any questions.
Total Value =
SWITCH(TRUE(),
'Structure Legend'[Stucture] = "Shares", CALCULATE( SUMX('funds structure', [shares]*[Value])),
'Structure Legend'[Stucture] = "Bonds", CALCULATE( SUMX('funds structure', [bonds]*[Value])))
Best Regards,
Joyce
Hi @Tomek1982 ,
Please create a new table with column "structure" and add a column with total value as below.
I modified your demo file as attached. Let me know if any questions.
Total Value =
SWITCH(TRUE(),
'Structure Legend'[Stucture] = "Shares", CALCULATE( SUMX('funds structure', [shares]*[Value])),
'Structure Legend'[Stucture] = "Bonds", CALCULATE( SUMX('funds structure', [bonds]*[Value])))
Best Regards,
Joyce
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |