+ Reply to Thread
Results 1 to 13 of 13

Display stacked waterfall chart correctly

  1. #1
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Display stacked waterfall chart correctly

    How do I create a stacked waterfall chart that will basically have 4 data columns:

    Column 1 = 2019a (it is stacked):
    Sales of A = 1000, Sales B = 2000, Total = 3000 (instead of showing $ for A and B show %,but show dollar total on top)
    Column 2 = Add Sales C = 500

    Column 3 = They sale Sales of A = 1000
    Column 4 = 2019b = Sales of B =2,000, Sales of C = 500
    A, B, and C should be their own color and there should be lines connecting the columns in the waterfall

    Can someone help me set this up in excel 2016?
    Attached Images Attached Images

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Display stacked waterfall chart correctly

    Take a look at Jon Peltier's Waterfall tutorial. This is not using the new waterfall chart type available in XL 2016, but the traditional chart

    https://peltiertech.com/excel-waterf...bridge-charts/

    You can add a column if you want to have visible stacked values in the chart.

  3. #3
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Re: Display stacked waterfall chart correctly

    I am still unable to get it to work.

  4. #4
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Re: Display stacked waterfall chart correctly

    stack.PNG

    This is what I would like the stacked waterfall chart to look like, but the left bar chart should also show %'s... I tried using upslide to generate this but there seems tobe some bugs.. how can I create this excel ?

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Display stacked waterfall chart correctly

    What is upslide?

    You can put any label on the data series. If you want the label to be a percentage, then you have to calculate that percentage somewhere and then point the label to use that cell as the label text.

    If you need help with the chart, please upload a sample file with your data, so nobody has to eyeball your numbers and type it all in manually.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display stacked waterfall chart correctly

    How much of Peltier's tutorial did you understand? Were there parts that you did not understand? When you tried it, what worked and what did not work?

    Going with a stacked column chart approach, I:

    Knowing that most of the work is in the spreadsheet, I started with the spreadsheet.
    1) Enter my horizontal axis labels (2019E, DJ, less AG, 2019EPF) in A2:A5.
    2) Enter my column labels (FT, AG, DJ) in B1:D1.
    3) Enter values in B2:D5. Up to here, this looks like the top table in your picture.
    Now I need to add the calculations for the stacked column chart
    4) Enter data series names (base, FT, AG, DJ) in F1:I1.
    5) Enter 0 in F2, Enter =ABS(B2) into G2 (the ABS() function will allow the column chart to handle both positive and negative entries like C4). Copy across into H2:I2.
    6) In F3, I used the formula =SUM(G2:I2)+SUM(B3:C3). I copied G2:I2 and pasted into G3:I3.
    7) Copy F3:I3 and paste into F4:F5. Enter 0 in F5.
    That should be the table my stacked column chart will use.
    8)Select A1:A5 ctrl then select F1:I5 -> Insert -> Stacked column chart
    8a) My copy of Excel guessed (incorrectly) that I wanted series in rows, so I clicked on "switch row/column". If Excel really messes up your series definitions, fix them in the Select Data dialog.
    9) Select the "base" data series and format it to be invisible.
    Your chart should look a lot like the one in your picture. To get the data labels, compute the percentages in the spreadsheet, then add data labels to the chart using those values:
    10) In K2, I entered =B2/SUM($B2:$D2) [note the mix of relative and absolute references]. Copy into L2:M2 and K5:M5.
    11) Select the chart and add the data labels. Format the data labels to use values in cells and select the appropriate column for each data series. If there are unwanted 0% labels, clear those cells in the spreadsheet.

    Peltier explains how this all works in his tutorial. Following these steps, you should be very close to the chart you show in your picture.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Unhappy Re: Display stacked waterfall chart correctly

    Hi attached is the file with data when I tried to copy these instructions... I think I got up to #8 in your instructions but I don't know if I did this correctly ..
    Can you help with the chart on this spreadsheet? When I clicked switch row/column it is greyed out for 8a.
    Also, for this chart to work, does the data always have to start in A1? Can you make this chart with data in the middle of a spreadsheet page?

    Quote Originally Posted by MrShorty View Post
    How much of Peltier's tutorial did you understand? Were there parts that you did not understand? When you tried it, what worked and what did not work?

    Going with a stacked column chart approach, I:

    Knowing that most of the work is in the spreadsheet, I started with the spreadsheet.
    1) Enter my horizontal axis labels (2019E, DJ, less AG, 2019EPF) in A2:A5.
    2) Enter my column labels (FT, AG, DJ) in B1:D1.
    3) Enter values in B2:D5. Up to here, this looks like the top table in your picture.
    Now I need to add the calculations for the stacked column chart
    4) Enter data series names (base, FT, AG, DJ) in F1:I1.
    5) Enter 0 in F2, Enter =ABS(B2) into G2 (the ABS() function will allow the column chart to handle both positive and negative entries like C4). Copy across into H2:I2.
    6) In F3, I used the formula =SUM(G2:I2)+SUM(B3:C3). I copied G2:I2 and pasted into G3:I3.
    7) Copy F3:I3 and paste into F4:F5. Enter 0 in F5.
    That should be the table my stacked column chart will use.
    8)Select A1:A5 ctrl then select F1:I5 -> Insert -> Stacked column chart
    8a) My copy of Excel guessed (incorrectly) that I wanted series in rows, so I clicked on "switch row/column". If Excel really messes up your series definitions, fix them in the Select Data dialog.
    9) Select the "base" data series and format it to be invisible.
    Your chart should look a lot like the one in your picture. To get the data labels, compute the percentages in the spreadsheet, then add data labels to the chart using those values:
    10) In K2, I entered =B2/SUM($B2:$D2) [note the mix of relative and absolute references]. Copy into L2:M2 and K5:M5.
    11) Select the chart and add the data labels. Format the data labels to use values in cells and select the appropriate column for each data series. If there are unwanted 0% labels, clear those cells in the spreadsheet.

    Peltier explains how this all works in his tutorial. Following these steps, you should be very close to the chart you show in your picture.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display stacked waterfall chart correctly

    I cannot guess what Excel was thinking when you created the chart. As I explained in 8a, when Excel really messes up the series' definitions, you need to go into the Select Data dialog and fix it all up. I also noticed that you did something very different than what I was thinking in steps 4 to 7 -- especially leaving out the "base" column that allows the columns to "float". Starting with your current sample file, I:

    4-7) Repeated steps 4 to 7 as I described above.
    8) Selected the chart and pulled up the Select Data dialog.
    8a) In the "horizontal category axis labels" section, I edited the horizontal category axis labels to be A2:A5.
    8b) I edited each data series so that the series name would be row 1 (F1 for series 1, G1 for series 2, etc.), and the series values would be row 2 to row 5 (F2:F5 for the "base" series, G2:G5 for the "Fab Tech" series, etc.)
    9-11) as listed.

    Is that closer?

  9. #9
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Unhappy Re: Display stacked waterfall chart correctly

    I tried to fix up my columns, but I'm still doing something wrong...
    also how do I get those lines to show up between the columns?
    And if I wan to put this somewhere else, do I have to keep the data starting in A1...

    Thank you!
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display stacked waterfall chart correctly

    Did you understand the "base" calculation -- because I appear to have made a mistake in step 6. I should have included F2 in the first sum when entering F3. By changing F4 to be =SUM(F3:I3)+SUM(B4:C4) seems to have fixed that part of the chart.

    To add the horizontal lines, I would add 3 more data series as line series.

    12) Enter 3813 into O2 and O3
    13) Enter +3813+1260 into P3 and P4
    14) Enter +5073-1452 into Q4 and Q5. With more thought, we should be able to figure out these formulas so they are based on the values entered in B:D, but I did not think that hard (since most of this question is about generating the chart, I am assuming you can figure out the spreadsheet formulas. Let us know if you want some help in deriving these formulas).
    15) Select O2:Q5 -> Copy -> Select Chart -> Paste to add the three new data series (they will add as more stacked columns.
    16) Select one of the new data series -> Change chart type -> Line (with or without marker as you prefer). Repeat for each of the new data series.
    17) Format the three line series as desired.

  11. #11
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Re: Display stacked waterfall chart correctly

    yes, can I please have help deriving the formulas?

  12. #12
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    120

    Unhappy Re: Display stacked waterfall chart correctly

    Hi,
    Almost there!
    1) I Couldn't get percents to show instead of dollar signs for some reason in the stacked bar?
    2) Is there a way to show $ and % on top of a stacked bar?
    3) there is still an extra stacked bar under Air divestiture?
    4) There is still an extra stacked bar under 2019 pf (last column).
    Thank you
    Attached Files Attached Files

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display stacked waterfall chart correctly

    For the formulas for O2, P3, Q5 -- it seems like these formulas should be cumulative to this point summations. I tried =SUM($B$2:$D2) (note how I mixed relative and absolute referencing into this) in O2, then copied that into P3 and Q4, and that seemed correct. O3 was then =O2, P4 was =P3, Q5 was =Q4. That looked right.

    I don't know why you could not get the percents to show. It should have been as simple as adding the data labels -> using the "values from cells" option -> then telling the data label to get its text from the appropriate range in the spreadsheet (K2:K5 for the Fabtech series, for example). Assuming that is what you tried, I am not sure why it would not let you do that (help file: https://support.office.com/en-us/art...2-f467c9f4eb2d ). Getting both $ and % to show should be the same thing -- put whatever text/values you want in the spreadsheet cells, then use the data labels -> values from cells option to make that text appear in the data label.

    I do not see the extra stacked bar under Air divestiture, but I do see the extra stacked bar under 2019 pf. If you are understanding how this is working, this should be an easy fix, so I'll let you wrestle with the exact fix. Extra stacked bars in a stacked column chart mean that you have a non-zero value (Adding gridlines and the extra bar under 2019 pf looks like it is about $7000) where you should have a 0 value. It should be as simple as editing the source data for the chart so that the appropriate cells contain 0.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Waterfall Chart not formatting correctly
    By WinchTS in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-24-2018, 10:57 AM
  2. [SOLVED] Waterfall + stacked bar chart Excel issue
    By jw01 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-22-2015, 03:38 PM
  3. Monthly Headcount Change Stacked Column Waterfall
    By scampy74 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-15-2015, 03:56 PM
  4. How to do a Stacked Column Waterfall Chart with a Secondary Axis
    By Eric S in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-23-2015, 01:21 PM
  5. Stacked waterfall chart with horizontal line
    By kalam1989 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-28-2013, 12:42 PM
  6. Replies: 1
    Last Post: 07-23-2010, 05:02 AM
  7. How to Display Total at top of Stacked Column Chart
    By spicylife in forum Tips and Tutorials
    Replies: 0
    Last Post: 12-05-2009, 01:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1