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
TMC_Belisar
Regular Visitor

How to build dynamic forecast based on changing CAGRs

Dear community,

 

I'm currently trying to build demand forecasts based on existing CAGRs which differ in Operating Division, Strategic Relevant Market (SRM) and time frame (2025-2030 vs 2031-2035).

 

The result should look something like this:

Example.png

 

I'v ered through several posts in this forum but the closest request (Solved: Cumulative Forecast - Microsoft Fabric Community) came with two major obstacles for which I could not find a solution:

  • summarize(): When using this function, the CAGRs get only summarized which is methematically wrong (we need a"power"-relationship between the years) and the demand don't starts with "1" or "100%". 
  • I cannot selectively chose different CAGRs for different years. Comeing from differend programming languages I would chose a "for" function. However, even when implementing a "switch" function, I cannot ask for distinguishing between different years.

To simplify my request I created the following two tables as my source of data:
'CAGR'
 

DivisonStrategic Relevat MarketCAGRTime frame
ASRM 11%2025-2030
ASRM 12%2031-2035
ASRM 2-1%2025-2030
ASRM 2-2%2031-2035
BSRM 35%2025-2030
BSRM 310%2031-2035
BSRM 43%2025-2030
BSRM 4-3%2031-2035


'Calendar'

Date
01.01.2025
01.01.2026
01.01.2027
01.01.2028
01.01.2029
01.01.2030
01.01.2031
01.01.2032
01.01.2033
01.01.2034
01.01.2035

 

Many thanks in advance for your support! I really love this forum 🙂

1 ACCEPTED SOLUTION

Hi @TMC_Belisar ,

 

I tough you were only summing up the values in this case use the PRODUCTX ( 😊)function redo your final value to:

 

Final Value = PRODUCTX( FILTER(ADDCOLUMNS(ALL('Calendar'),"FinalValue", 1+[Total Values]),'Calendar'[Year] <= MAX('Calendar'[Year])),[FinalValue])

 

MFelix_0-1714388719066.png

MFelix_1-1714388743629.png

 

Please check if the results are correct but believe they are.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @TMC_Belisar ,

 

Make the following:

  • Split the Time frame between start and end column:

MFelix_0-1714152231078.png

 

Now add the following two  measure:

Total Values = 
VAR TEMP_TABLE = 
FILTER(


    	FILTER(CROSSJOIN(
		FILTER(
			'Range',
			'Range'[Start] <= MIN('Calendar'[Year]) && 'Range'[End] >=  MIN('Calendar'[Year]) 
		),
	
			VALUES('Calendar'[Year])		), 'Calendar'[Year] >= 'Range'[Start] && 'Calendar'[Year] <= 'Range'[End])
, 'Calendar'[Year] <= MAX('Calendar'[Year]))

RETURN SUMX(TEMP_TABLE,
 Range[CAGR])

Final Value= 1 + sumx( FILTER(ADDCOLUMNS(ALL('Calendar'),"FinalValue", [Total Values]),'Calendar'[Year] <= MAX('Calendar'[Year])),[FinalValue])

MFelix_1-1714152422653.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel,

thank you very much! Your suggestion solves the issue with two different CAGRs within the larger time frame.

Unfortunately, again the sumx() function is only adding the CAGRs up, not multiplying the previous years value.

Do you also have a suggestion how incorporate the previous years value of your draft into some kind of productx() function?


Many thanks

Hi @TMC_Belisar ,

 

I tough you were only summing up the values in this case use the PRODUCTX ( 😊)function redo your final value to:

 

Final Value = PRODUCTX( FILTER(ADDCOLUMNS(ALL('Calendar'),"FinalValue", 1+[Total Values]),'Calendar'[Year] <= MAX('Calendar'[Year])),[FinalValue])

 

MFelix_0-1714388719066.png

MFelix_1-1714388743629.png

 

Please check if the results are correct but believe they are.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Perfect, now it works 🙂

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.