Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have 3 different tables. The tables all have the same column, "col1", with different values in them.
I need to show the distribution of values in col1 for all 3 tables in a part chart.
So lets say there are..
- 25 rows in table 1's col1 with the value "No"
- 25 rows in table 2's col1 with the value "Maybe"
- 50 rows in table 3's col1 with the value "Yes"
I need a pie chart to show 3 slices: No, Maybe and Yes with their respective percentages (25%, 25%, 50% in this example case).
How to achieve this?
Solved! Go to Solution.
Hi @msuser48 ,
I created some data:
Here are the steps you can follow:
1. Create a table with Enter data.
2. Create measure.
Measure =
var _all=[Measure1]+ [Measure2] +[Measure3]
return
SWITCH(
TRUE(),
MAX('Table'[all])="table1",DIVIDE([Measure1],_all),
MAX('Table'[all])="table2",DIVIDE([Measure2],_all),
MAX('Table'[all])="table3",DIVIDE([Measure3],_all)
)
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @msuser48 ,
I created some data:
Here are the steps you can follow:
1. Create a table with Enter data.
2. Create measure.
Measure =
var _all=[Measure1]+ [Measure2] +[Measure3]
return
SWITCH(
TRUE(),
MAX('Table'[all])="table1",DIVIDE([Measure1],_all),
MAX('Table'[all])="table2",DIVIDE([Measure2],_all),
MAX('Table'[all])="table3",DIVIDE([Measure3],_all)
)
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Create a new Table (Menu Bar --> Modelling --> New Table) and add the following formula:
@msuser48 easier to append tables in power query and then everything will be super easy.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
80 | |
60 | |
59 | |
58 |
User | Count |
---|---|
157 | |
119 | |
104 | |
77 | |
69 |