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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
GBilger
Frequent Visitor

Dynamic Forecast Comparison

Hi,

 

The table below shows a summary of the data I'm working with.  Each row represents a different production forecast for a given year.  If I select a Year in the slicer, I want to display a waterfall chart to show the difference between production forecasts for that selected year starting with the first forecast and ending with the last (or Actuals for the current or past years). 

 

GBilger_0-1637083802899.png

GBilger_1-1637086851331.png

 

The standard waterfall chart works but it gives you subtotals in between each value that I don't want and I can't figure out how to make them go away.  I'm assuming to make it work I'll need a measure to find the incremental differences between forecasts.  If I'm wrong feel free to point me in the right direction.  I have a table where the forecasts are index and the volumes table isn't complicated (see below) but I'm struggling with the DAX.  

 

ProductProduction Date VolumeForecast
Product11/1/20182002018 PB
Product210/1/20183002018 RBU1
Product31/10/201950002019 MTP
Product44/1/2021675Actual
Product56/1/20222382020 LRP

 

1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@GBilger what you can do is calculate a dynamic measure that returns the delta between the forecasts, so as to pass them directly into the chart and thus remove the subtotals, like this:

bf_0-1637590433502.png

 

The graph above is the original one, in the one below I passed the DELTA measure as a value, calculated as follows:

DELTA = CALCULATE(SUM(Tabella[Volume]), ALLSELECTED(Tabella[Production Date ])) - CALCULATE(SUM(Tabella[PREV_VOLUME]), ALLSELECTED(Tabella[PREV_DATE]))
where PREV_VOLUME and PREV_DATE are two calculated columns:
PREV_DATE = LOOKUPVALUE(Tabella[Production Date ],Tabella[Indice],Tabella[Indice]-1)
PREV_DATE = LOOKUPVALUE(Tabella[Production Date ],Tabella[Indice],Tabella[Indice]-1)
instead Index is a column that you can insert from the power query in the sorting you prefer to give to the data to calculate the differential.
I hope I was clear, let me know,
B.

View solution in original post

4 REPLIES 4
BeaBF
Super User
Super User

@GBilger what you can do is calculate a dynamic measure that returns the delta between the forecasts, so as to pass them directly into the chart and thus remove the subtotals, like this:

bf_0-1637590433502.png

 

The graph above is the original one, in the one below I passed the DELTA measure as a value, calculated as follows:

DELTA = CALCULATE(SUM(Tabella[Volume]), ALLSELECTED(Tabella[Production Date ])) - CALCULATE(SUM(Tabella[PREV_VOLUME]), ALLSELECTED(Tabella[PREV_DATE]))
where PREV_VOLUME and PREV_DATE are two calculated columns:
PREV_DATE = LOOKUPVALUE(Tabella[Production Date ],Tabella[Indice],Tabella[Indice]-1)
PREV_DATE = LOOKUPVALUE(Tabella[Production Date ],Tabella[Indice],Tabella[Indice]-1)
instead Index is a column that you can insert from the power query in the sorting you prefer to give to the data to calculate the differential.
I hope I was clear, let me know,
B.
BeaBF
Super User
Super User

@GBilger If the solution is correct, I ask you to mark it, otherwise explain to me in more detail and let's see how to fix it!

 

B.

BeaBF
Super User
Super User

@GBilger Hi!

You can calculate an empty column like: Column= "" and put this new Column in the Breakdown field of the Waterfall Chart.

 

bf_0-1637160442990.png

 

 

B.

GBilger
Frequent Visitor

Hi,

The proposed solution did get rid of the labels for the increases/decreases.  However I was curious if there is a way to get rid of subtotal bars in between.  For this example it would just show the 2019 LRP and Actuals bars.  In between would be all the differences.

 

GBilger_0-1637584212984.png

 

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.