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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kandre123
Advocate I
Advocate I

CAGR Calculation

Hi All,

 

I have calculated a dynamic CAGR based on these three measures. 

 

CAGR Beginning Value = CALCULATE(SUM(FactAccounting[Value]);FILTER(Dates;Dates[Year] = MIN(Dates[Year]));FILTER(ALLSELECTED(FSLI1[ALIASFSLI]) ; FSLI1[ALIASFSLI] = "01 Revenues"))
CAGR Ending Value = CALCULATE(SUM(FactAccounting[Value]);FILTER(Dates;Dates[Year] = MAX(Dates[Year]));FILTER(ALLSELECTED(FSLI1[ALIASFSLI]) ; FSLI1[ALIASFSLI] = "01 Revenues"))
# Years CAGR = (MAX(Dates[Year]) - MIN(Dates[Year]))
Dynamic CAGR = IFERROR(([CAGR Ending Value] / [CAGR Beginning Value])^(1 / [# Years CAGR])-1;0)

 

I would also like to calculate a fixed 3 and 5 year cagr based on the time filter applied. So if i choose 2018 it will calculate a 3 year and 5 year backwards without me setting a time range.

 

With as few measures as possible how could this be fixed? I tried to put a -3 and -5 in the cagr ending value to calculate out new beginning values but that didnt work.

 

1 REPLY 1
dax
Community Support
Community Support

Hi kandre123, 

I couldn't reporduce your design just based on your desription, so if possible, could you please inform me more detailed information (such as your sample data and your expected output)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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