Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
maranz
Frequent Visitor

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

StackedBarpng.png 

1 ACCEPTED SOLUTION
radhey_rec
Resolver II
Resolver II

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:

image.png

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

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
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.

vyalanwumsft_0-1640593067125.png

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.

 

Thank you.  This was very helpful.

radhey_rec
Resolver II
Resolver II

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:

image.png

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
Community Champion
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.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.