cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
7ballp25
Regular Visitor

CAGR HELP! Forecasting using Current data

I literally forgot how to do this, please help. 

 

I have a table that has 2018-2022 Year sales.

I created a whatifparameter from 0-100% to be the CAGR value. Focusing only on 2022 sales, I want the user to be able to select their desired CAGR % and see what the how it impacts 2023-2025 forecasted sales.

 

Forecasted Sales is dax table using Union Row...example below

 

help.PNG

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @7ballp25 
Here is a sample file with the solution https://we.tl/t-UvJsRpmiYd

Forcasted Sales = 
VAR LastAvialableYear = 
    MAX ( Data[Year] ) 
VAR LastAvailableSales = 
    CALCULATE ( SUM ( Data[Sales] ),'Data'[Year] = LastAvialableYear )
VAR CurrentYear = 
    MAX ('New Data'[Year] )
VAR YearDifference =
    CurrentYear - LastAvialableYear
VAR SelectedPercent =
    SELECTEDVALUE ( Parameter[Selected %] )
RETURN
    LastAvailableSales * POWER ( 1 + SelectedPercent, YearDifference )

1.png2.png

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @7ballp25 
Here is a sample file with the solution https://we.tl/t-UvJsRpmiYd

Forcasted Sales = 
VAR LastAvialableYear = 
    MAX ( Data[Year] ) 
VAR LastAvailableSales = 
    CALCULATE ( SUM ( Data[Sales] ),'Data'[Year] = LastAvialableYear )
VAR CurrentYear = 
    MAX ('New Data'[Year] )
VAR YearDifference =
    CurrentYear - LastAvialableYear
VAR SelectedPercent =
    SELECTEDVALUE ( Parameter[Selected %] )
RETURN
    LastAvailableSales * POWER ( 1 + SelectedPercent, YearDifference )

1.png2.png

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors