Forum Discussion

maranz's avatar
maranz
Frequent Visitor
4 years ago
Solved

Compare Forecast and Actual Date Ranges

I need a visual that compare Actual and Forecast numbers.  The data is a table of dates and I have caluclated the DATEDIFF values.  Currently I have two stacked bar charts, one for Actual, one Forecast.  The problem is that separate visuals distort the scale and occupy too much screen space.  Is there a way to create one visual with my data which looks like this (x2)?   Thanks!

Shutdown StartShutdown EndMaintenance StartMaintenance EndRestart StartRestart End
8/1/20219/10/202111/23/202112/17/202111/14/20213/21/2022
6/26/20215/25/20213/16/20213/4/20216/23/20211/13/2021
8/18/202110/31/20213/22/20225/2/20221/21/202210/11/2022
7/5/20216/21/20215/18/20215/15/20217/29/20215/1/2021

 

  • Hi maranz,

    You may try the solution suggested by bcdobbs.

    Alternatively, you may also look at creating custom visual specific to your need at the site https://pbivizedit.com

     

    Given the data:

    TypeHeadDays
    ActualShutdown12
    ActualMaintenance9
    ActualRestart4
    ForecastShutdown12
    ForecastMaintenance13
    ForecastRestart4

     

    I am capable of creating this:

    You can have a look at https://pbivizedit.com/gallery/actual-vs-forecast 

    Please note, these visuals do not support native Power BI tooltips and selection.

     

    Thanks,
    -R

4 Replies

  • Hi maranz,

    You may try the solution suggested by bcdobbs.

    Alternatively, you may also look at creating custom visual specific to your need at the site https://pbivizedit.com

     

    Given the data:

    TypeHeadDays
    ActualShutdown12
    ActualMaintenance9
    ActualRestart4
    ForecastShutdown12
    ForecastMaintenance13
    ForecastRestart4

     

    I am capable of creating this:

    You can have a look at https://pbivizedit.com/gallery/actual-vs-forecast 

    Please note, these visuals do not support native Power BI tooltips and selection.

     

    Thanks,
    -R

  • bcdobbs's avatar
    bcdobbs
    Community Champion

    How is the data structured for forecast and actual. If you can get the data into a single table where you can slice by forecast/actual then stacked bars have a "small multiple" option which will do what you want. Just drop the forecast/actual column in there.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, maranz ;

    You could create a column or a table  So that the values of "actual" and "Forecast" are put into different categories respectively, just like 2013 and 2014 below.

    Or could you share simple file and expected result? It makes it easier to give you a solution.

     

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    • maranz's avatar
      maranz
      Frequent Visitor

      Thank you.  This was very helpful.