Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I have data like
| Country | Date | Year | Quarter | Sales | CAGR% |
I need to get last 5 years CAGR value in ROW wise in a Table view
There is filters selection required
My below calculation is not giving me Row level CAGR value
CAGR = (Ending year value/ Starting year value)^(1/no.of years) -1
This is my formula for this
Ending year value = CALCULATE(SUM('Yearly Data'[Oil Production(MMBPD)]),FILTER('Yearly Data','Yearly Data'[Year]=Max('Yearly Data'[Year])))
@BhavyaM ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
Hi,
Below one is my expected result.
When i apply initial provided Calculation i am getting result like below
Thanks in advance
Hi @BhavyaM ,
Lack of your sample data , so I can only find the part of your formula that may be the cause of the problem:
Ending year value = VAR MAXDATE = CALCULATE(Max('Yearly Data'[Year]),ALL('Yearly Data'))RETURN (CALCULATE(SUM('Yearly Data'[Oil Production(MMBPD)]),FILTER('Yearly Data','Yearly Data'[Year]=MAXDATE))
Starting year value= VAR MINDATE = CALCULATE(Max('Yearly Data'[Year]),ALL('Yearly Data'))RETURN CALCULATE(SUM('Yearly Data'[Oil Production(MMBPD)]),FILTER('Yearly Data','Yearly Data'[Year]=MINDATE))
In your original formula, if the max and min functions are in the same context, they will get the same result.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Proud to be a Super User!
Above provide one is my table structure.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.