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
Syndicate_Admin
Administrator
Administrator

CAGR rate in Excel Power Query

Hi,

 

I'm trying to calculate the CAGR rate using power query but running into a brick wall!  In PowerBi I believe this is the correct formula...

 

CAGR = ([Ending Value]/[Beginning Value])^(1/[# of Years])-1

 ....but in Excel, Power Query doesn't seem to recognise the ^ symbol.  Has anyone had any success calculating CAGR through Power Query before, can't find much about it online!

 

Thanks

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Found a solution, for anyone else who may ever be looking for one!

 

Used the Number.Power function under the Scientific option and just changed the formula 

Table.AddColumn(#"Removed Columns1", "Power", each Number.Power([End]/[Start], 1/[CAGR Yrs])-1, Int64.Type)

 

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Found a solution, for anyone else who may ever be looking for one!

 

Used the Number.Power function under the Scientific option and just changed the formula 

Table.AddColumn(#"Removed Columns1", "Power", each Number.Power([End]/[Start], 1/[CAGR Yrs])-1, Int64.Type)

 

This looks fine except for Int64.Type. I don't think your CAGR will always be an integer.

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.

Top Solution Authors