Forum Discussion
CAGR for Group
Can you explain how you're computing the values you show under Outcome?
This is the power bi visual. The CAGR values are calculated in Acess SQL because this current table is a query table table from several other tables .
This is the SQL in acess
SELECT t1.pillar, t1.[Business Unit], t1.[Income type], t1.[Statement type], t1.Year AS yr_1, t2.Year AS yr_2, t1.value AS value_1, t2.value AS value_2, ((t1.value/t2.value)^(1/((IIf(t1.Year='2025 with Inorganic','2025',t1.Year))-(IIf(t2.Year='2025 with Inorganic','2025',t2.Year))))-1) AS cagr, IIf([t2].[Year]="2025 with Inorganic","Inorganic and Organic",
IIf([t2].[Year]="Net Organic Growth","Net Organic Growth","Organic")) AS [Growth Type]
FROM 20172025revenues AS t1 INNER JOIN 20172025revenues AS t2 ON (t1.pillar = t2.pillar) AND (t1.[Business Unit] = t2.[Business Unit]) AND (t1.[Income type] = t2.[Income type])
WHERE (((t1.[Business Unit])<>'Other And Consolidation Entries'));
- AlexisOlson4 years ago
Super User
If you're calculating CAGR in Access, then that's where you should calculate the group CAGR too since it's not an additive measure you can just aggregate in Power BI. If you go this route, you may be interested in reading this post I wrote a while back:
Handling Subtotals for Pre-Calculated (Non-Additive) MeasuresThe other option is to do all your CAGR calculations in Power BI rather than Access. DAX can handle these sorts of calculations just fine and you don't have to worry about the granularity scope as much.
- Zaynah164 years ago
Helper I
Do you have a solution on how to calculate the CAGRS in power bi ?
- AlexisOlson4 years ago
Super User
It's a simple formula in principle but I'm not sure how you aggregate separate timeframes together.
If you can provide some sample input and expected output, I can probably help. Your given sample data doesn't make much sense to me though. The value 1 and value 2 don't appear to correspond to the CAGR in that row.