Joined
·
1,910 Posts
Hi there. I've been asked to produce a pie chart in Excel, which shows volumes of vehicles damaged per ship.
This info is stored in a 4 column table:
- Ship Name
- Number Imported
- Number Damaged
- Percentage Damaged (being Number Damaged divided by Number Imported, expressed as a percentage).
I might get up to say, 10 different ships in a month.
I want the pie chart to show 3 data labels. If I go to Format Data Series > Data Labels tab, under the "Label Contains" section I can use:
Category Name to give me the Ship Name.
Value to give me the Number Damaged.
But I also need to show Percentage Damaged.
However, I cannot use Percentage under "Label Contains", because, of course, this shows the percentage of the pie that each slice represents, rather than the percentage Values that are calculated.
I tried messing around with a concatenated field and custom cell formatting, but I couldn't get it to show what I wanted. Ideally I'd like the number imported included on the graph too!
So I might ultimately have a data label showing:
Autofreighter
160 damaged / 1000 imported = 16%
or something similar. Perhaps without the words "damaged" and "imported"...
I realise these percentages may appear misleading on a pie chart where one might reasonably expect the whole pie to add it up 100%, but these are my instructions!
Any pointers?
This info is stored in a 4 column table:
- Ship Name
- Number Imported
- Number Damaged
- Percentage Damaged (being Number Damaged divided by Number Imported, expressed as a percentage).
I might get up to say, 10 different ships in a month.
I want the pie chart to show 3 data labels. If I go to Format Data Series > Data Labels tab, under the "Label Contains" section I can use:
Category Name to give me the Ship Name.
Value to give me the Number Damaged.
But I also need to show Percentage Damaged.
However, I cannot use Percentage under "Label Contains", because, of course, this shows the percentage of the pie that each slice represents, rather than the percentage Values that are calculated.
I tried messing around with a concatenated field and custom cell formatting, but I couldn't get it to show what I wanted. Ideally I'd like the number imported included on the graph too!
So I might ultimately have a data label showing:
Autofreighter
160 damaged / 1000 imported = 16%
or something similar. Perhaps without the words "damaged" and "imported"...
I realise these percentages may appear misleading on a pie chart where one might reasonably expect the whole pie to add it up 100%, but these are my instructions!
Any pointers?