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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Super User
Super User

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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