?
Solved

Dynamic Bar chart in Excel

Posted on 2016-10-21
5
Medium Priority
?
73 Views
Last Modified: 2016-10-21
Can someone please show me how to create dynamic  chart for the data attached here?  In the attached example, mint does not have any sales.  How can i build a dynamic chart that hides mint from the chart and only show mint sales on the chart when mint is not blank.
Book12.xlsx
0
Comment
Question by:fb1990
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 41854094
Recast your source data to look like this:

Category      Product      Result
Percent Sales      cookie      42.64%
Percent Sales      sweets      84.75%
Percent Sales      dough      22.64%
Percent Sales      oil      20.00%
Percent Sales      biscuit      52.16%
Percent Rewards      cookie      48.10%
Percent Rewards      sweets      70.29%
Percent Rewards      dough      38.10%
Percent Rewards      biscuit      92.78%

Then create a PivotChart on that data, with Product as the Axis field, Category as the Legend field, and Sum of Result as the Value field
0
 
LVL 32

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 2000 total points
ID: 41854117
Refer to the attached and see if this is what you were trying to achieve.
Book12.xlsx
0
 
LVL 1

Author Closing Comment

by:fb1990
ID: 41854334
Thanks Patrick and Neeraj.  Neeraj solution worked for me.  Is there a way to hide #N/A?  I want add data label and don't want that to show
0
 
LVL 32

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41854345
You're welcome.
#N/A is necessary to hide the series with no data in this case Mint sales.
0
 
LVL 1

Author Comment

by:fb1990
ID: 41854569
Thank you.  I added iferror to mask it and it changed the #N/A to 0%.  I want it to go away but i can live with it.  Thanks a a bunch as usual
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

719 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