Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lennox25
Helper V
Helper V

Producing Pie Charts and Bar charts via percentages for groups

Hi, 

I wonder if someone can help?

I have 3 stores, Red, Pink.  For Red and Pink, I have cards detailing units sold between: (Small)0-100, (medium)101-500 (large) 501+. Which is great. On PBI I need to create a a bar chart showing both stores and the % of small, medium and large units sold. I also need to create a pie chart again in % showing % of small stores units sold v % of total units sold.

I attach PBI Sample report if anyone would like to take a look. Thank you.

 

https://drive.google.com/file/d/1GYAYxZaBMaxY5beGC-NRbI87lBxfNPte/view?usp=sharing 

 

1 ACCEPTED SOLUTION

Hi @lennox25 

please refer to my solution in this post with the similar question, Solved: Make pie chart show % of total population when fil... - Microsoft Power BI Community

Here are 2 solutions in that post for your reference,

vxiaotang_0-1669194673085.png

For example, you can create a table containing ‘All Stores' and 'Small Stores'.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Jayee
Responsive Resident
Responsive Resident

Hi @lennox25 ,

 

Use below measure for bar chart it will work same as Pie chart shows and make sure format measure as Percentage

% Rage Measure =
DIVIDE (
[Range Measure],
CALCULATE (
SUMX (
SUMMARIZE (
'Units Sold Range',
'Units Sold Range'[Range],
"X", [Range Measure]
),
[X]
),
ALL ( 'Units Sold Range' )
),
0
)

 

Jayee_0-1668525692076.png

If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!

 

Hi @Jayee  -  What Im after is a pie chart (which Ive done in Excel) that looks like this. Is this possible?

lennox25_1-1668527253499.png

 

Hi @lennox25 

please refer to my solution in this post with the similar question, Solved: Make pie chart show % of total population when fil... - Microsoft Power BI Community

Here are 2 solutions in that post for your reference,

vxiaotang_0-1669194673085.png

For example, you can create a table containing ‘All Stores' and 'Small Stores'.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Jayee
Responsive Resident
Responsive Resident

Hi @lennox25 

 

If you have data structure in power bi same as excel you have while creating this Yes it is possible.

If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!

Jayee
Responsive Resident
Responsive Resident

Hi @lennox25 ,

 

For Pie Chart select Range Measure and Range fields in pie chart and in format options select "Percent of total"

Jayee_1-1668518436817.png

 

Thanks,
Jay

 

Hi @Jayee  - Thank you for this. But what I need is to show the % of Small along with % of Total so it would look like 52% Small and 48% Total. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.