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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Need Help calculating %Var in multiple ways from appending data set

I'm banging my head against the wall on this, and would appreciate any help...

 

Every month, I collect a global forecast. It's relatively easy for me to do analysis of the latest forecast, but what I really want to do is analyze changes in the forecast. To that end, I have a single excel file, and I append the latest forecast data to it as I receive it. The fist column in my table is the "forecast published" column, so I know which month the forecast was published. The table below is a very simple example.

 

Objective 1: 

Calculate the %variance ((new-old)/old) between the forecast year and the baseline year (2019, or user-selectable). So for example, I would use a filter to select the published forecast of interest (say, March), then show the forecast units for 2019-2022 and also the %change for 2020-2022 vs. 2019. It would be even better if I could make the baseline year selectable, but that's harder I suspect?

 

Objective 1Objective 1

Objective 2: 

Calculate the %variance across each successive forecast publish, by year. For example, i want to show how the forecasted units are increasing for years 2020 - 2022 between earlier (Jan) and later (Mar) published forecasts.

 

Objective 2Objective 2

Example data set:

Forecast PublishedForecast YearUnits
Jan2019               16,315,117
Jan2020               12,760,640
Jan2021               14,611,281
Jan2022               15,705,718
Feb2019               16,315,117
Feb2020               12,903,781
Feb2021               15,180,948
Feb2022               15,802,295
March2019               16,314,403
March2020               13,019,088
March2021               15,905,071
March2022               16,295,605

 

Any help is greatly appreciated. Also, this is my first time posting, so please excuse any breaches of etiquette in how I posted.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you!!! I had to play with it a bit, but your solution worked for me.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.