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

Calculate CAGR

I'm trying to calculate CAGR for Customers using quarters of the year.

 

Objective:
Calculate CAGR for customers using every quarter of the year starting from 2017-4 to 2022-4

 

My Calculations:
Beginning Value = CALCULATE(SUM('Data'[Customer_Name]),FILTER('Data','Data'[Year Qtr]=2017-4))
Ending Value = CALCULATE(SUM('Data'[Customer_Name]),FILTER('Data','Data'[Year Qtr]=2022-4))

CAGR = ([Ending Value]/[Beginning Value])^(1/21)-1


End result need a separate column for CAGR in the dataset.

 

Can someone please advice what I need to do.

Thanks in advance!

1 REPLY 1
amitchandak
Super User
Super User

@Revati265 , if need this qtr vs last qtr , then you can measures for that like these examples using date table

 

example

 

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))


Qtr Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(ENDOFQUARTER('Date'[Date])))

Last QUARTER Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD( ENDOFQUARTER(dateadd('Date'[Date],-1,QUARTER))))
Last QUARTER Sales = CALCULATE(SUM(Sales[Sales Amount]),PREVIOUSQUARTER(('Date'[Date])))

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

 

You can also consider Offset

Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

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.