Dynamic Percent Calculated Field Linked to Other Charts in Powerpivot

DataNerd18

New Member
Joined
May 22, 2014
Messages
2
Goal: To create a visualization that ranks my cities based on the filters I click on the other graphs in my Dashboard; displayed as a percentage.

Background: I have 50 cities. Each city has supplies (ex: notebooks, pencils, pens). However, some of the supplies are broken. I have a pie chart with two layers: 1) broken vs. not broken which drills down into 2) the type of supply (notebooks, pencils, pens). The supplies are bucketed into groups (ex: school supplies, home supplies, office supplies), and the groups are listed in the Filters pane.

I want to show a horizontal bar chart with the cities listed along the axis and the size of the bar to be a percentage based on the filters. The numerator would change based on the combination of the two layers in the pie chart (broken vs not broken and the type of supply). The denominator would only be impacted by the groups listed in the Filters pane.

Any and all ideas are appreciated. Charting? Calculated field? Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Goal: To create a visualization that ranks my cities based on the filters I click on the other graphs in my Dashboard; displayed as a percentage.

Background: I have 50 cities. Each city has supplies (ex: notebooks, pencils, pens). However, some of the supplies are broken. I have a pie chart with two layers: 1) broken vs. not broken which drills down into 2) the type of supply (notebooks, pencils, pens). The supplies are bucketed into groups (ex: school supplies, home supplies, office supplies), and the groups are listed in the Filters pane.

I want to show a horizontal bar chart with the cities listed along the axis and the size of the bar to be a percentage based on the filters. The numerator would change based on the combination of the two layers in the pie chart (broken vs not broken and the type of supply). The denominator would only be impacted by the groups listed in the Filters pane.

Any and all ideas are appreciated. Charting? Calculated field? Thanks!

This is what I came up with: COUNTA([SUPPLIES])/CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[GROUP],Table1[CITY])).

I am open to improvements...

Also, how would I rank the results?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top