Solved

Excel Pivot table comparison chart

Posted on 2010-11-22
7
472 Views
Last Modified: 2012-05-10
Hello I need to make a comparison bar graph dependent on year, building, building condition,and building rating and building type.  

The building type is either permanent or temporary.  If the building is temp I need the color of the bar to be red, if it is perm, I need the bar color to be blue.  


I'm not quite sure how to do this with a conditional statement.  I can only have two bars per building.

I've attached an excel file.  

bldgCondition.xls
0
Comment
Question by:mhening
7 Comments
 
LVL 13

Assisted Solution

by:gbanik
gbanik earned 250 total points
ID: 34192400
Check the attached file. The format of the data has been modified a little to make it Pivot compliant.
123.PNG
bldgCondition.xls
0
 
LVL 13

Assisted Solution

by:gbanik
gbanik earned 250 total points
ID: 34192420
messed up the colors
bldgCondition.xls
123.PNG
0
 
LVL 3

Assisted Solution

by:cgaeden
cgaeden earned 125 total points
ID: 34192529
I don't think that there's a way to do this automatically with the tools that Excel provides (short of scripting). Also, I'm not sure how you would differntiate the two series of data from each other, apart from knowing that one data set is on top of the other.

However, you could always manually set the colors on each data point in the graph. If there's not many more than what you have in the sample sheet, this wouldn't be too much trouble. (see attachment)
bldgCondition.xlsx
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst
Ingeborg Hawighorst earned 125 total points
ID: 34193173
Hello mhening,

just a tip for using Gbanik's suggestion: Format the data series and on the Options tab set the Overlap to 100. This will center the columns in their spaces and get rid of the uneven distribution of columns.

cheers, teylyn
0
 

Accepted Solution

by:
mhening earned 0 total points
ID: 34202486
This is how I solved the dilemma, I made new columns using  the orignal columns using =IF(C2="temp",B2," ").  Then I made the chart and used the overlap setting at 50%.  

I attached a revised file.  Thank you for helping bldg summaryBuilding-ConditionRevised.xls
0
 
LVL 13

Expert Comment

by:gbanik
ID: 34202636
Hi mhening,

In my file, I have used pivot tables that allowed you to slice-n-dice the data as you want. The key is to convert the data in a way that Pivot understands. The output (as suggested by you), I think, is very similar to what you have obtained.

ps. I see some differences between your graph and mine especially around "I". Please confirm.
bldgCondition-1.xls
123.PNG
0
 

Author Closing Comment

by:mhening
ID: 34224751
I solved the problem
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question