+ Reply to Thread
Results 1 to 2 of 2

Line chart with two lines and hidden data labels

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Line chart with two lines and hidden data labels

    Hi all,

    I want to create a line chart where the line shows the numbers for January to December 2018. The numbers for Jan-Mar needs to be realised numbers and Apr-Dec needs to be forecastet numbers. The end result being the viewer only looks at one line where Jan-Mar for example is green = actuals and Apr-Dec = blue is estimate/forecast.

    What kind of chart can handle that?

    My data is below

    Realiseret Forecast
    jan 6.227.215 0
    feb 4.974.425 0
    mar 0 4.293.069
    apr 0 5.160.195
    may 0 3.883.846
    jun 0 3.945.446
    jul 0 5.352.986
    aug 0 5.558.124
    sep 0 6.402.928
    oct 0 5.210.457
    nov 0 5.980.909
    dec 0 4.826.467

    Thank you in advance for any help I receive.
    Last edited by Kagesen; 03-26-2018 at 07:02 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Line chart with two lines and hidden data labels

    Excel will omit NA values from a chart series - so replace your zero values with NA(), then plot both series on the same chart, and format to suit.
    I would add a couple of helper columns, for your chart data:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There will be a gap in the line between the Actual / Forecast series, of course.

    See attached workbook for a worked example.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Extra Set of Data Labels in Line Chart?
    By dsfcom in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-15-2012, 07:51 AM
  2. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  3. Line Chart and Data Labels
    By gballard in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-26-2012, 06:49 PM
  4. Second Line away from 0 and 3 data labels per chart row
    By nickFe in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-20-2011, 09:17 PM
  5. Lines are hidden on line chart
    By FuadsCurse in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-07-2006, 04:00 PM
  6. Data labels on Line chart
    By R in forum Excel General
    Replies: 4
    Last Post: 04-02-2006, 12:50 PM
  7. [SOLVED] Pie chart data labels and lines disappear
    By Sally Sibthorpe in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-15-2005, 11:05 AM

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