Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi everybody
I'm new to Power BI and need some help visualizing multiple true/false questions in one chart as a percentage average of the sum sales prize. Here it goes:
Sales opportunity, unique# | Sales prize | Is the car blue? | Is the car a 4WD | Does the car have backseats? |
11 | $ 100 | True | False | True |
12 | $ 300 | False | False | True |
13 | $ 250 | True | True | False |
14 | $ 175 | True | True | False |
15 | $ 100 | Fales | False | False |
Is it possible to display/visualize the true/false data in ONE stacked bar chart, where you get a percentage view.
Example:
Sum sales prize is: $925.
Percentage of cars that are blue: 60 %. Display: 60 % of sum sales price =$555
Percentage of cars that are 4WD: 40 %. Display: 40 % of sum sales price =$370
And so on... All in the same stacked bar chart.
I hope you're able to help.Thanks
BR
Anders
Solved! Go to Solution.
@Anonymous
In this scenario, you can first transform your table in Query Editor and then you can get the expected result with one measure. Please refer to following steps.
Percent = DIVIDE ( SUM ( Table1[Sales prize] ), CALCULATE ( SUM ( Table1[Sales prize] ), ALL ( Table2 ) ) )
@Anonymous
After you update the data tables, you only need to click “Refresh All” in Query Editor.
Best Regards,
Herbert
@Anonymous
In this scenario, you can first transform your table in Query Editor and then you can get the expected result with one measure. Please refer to following steps.
Percent = DIVIDE ( SUM ( Table1[Sales prize] ), CALCULATE ( SUM ( Table1[Sales prize] ), ALL ( Table2 ) ) )
Thanks a lot, just what I needed! Seems like I have a lot "text editing" to do in the Query Editor, before I have the desired result.
Do you know if the table copying in the Query Editor is "remembered" or do I have to do this manually each time I update the data tables?
@Anonymous
After you update the data tables, you only need to click “Refresh All” in Query Editor.
Best Regards,
Herbert
Thaks a lot! Just what I neeeded - quite a workaround though 🙂
Seems like I'm going to do a lot of "text-work" in the Query Editor, since the real table of course has a lot more content/questions. Do you know if the Query Editor is able to "remember" the copying of tables if I need to update theese numbers each month?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
83 | |
69 | |
68 | |
39 | |
37 |