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
sgupta22
Helper II
Helper II

CAGR computation

Hi everyone,

 

I am trying to compute the CAGR growth for "organic revenue".  However, the CAGR computation is wrong as it is simply giving me the CAGR of "Total reveneu" and not "Organic revenue".  Would be great if someone can help me figure what's going wrong with the formulas.  Below is the link to the power bi file as well for ease.

 

https://www.dropbox.com/s/4taoyigtytv84bc/Organic%20revenue%20CAGR%20calcualtion.pbix?dl=0

 

Also, here are some of the formulas that are being used to compute organic revenue:

Organic revenue = 
    VAR Revenue = CALCULATE(SUM('Table'[Total Revenue]))
    VAR Acquired_revenue = [Cumulative acquired revenue]
RETURN
    (Revenue - Acquired_revenue)
Cumulative acquired revenue = 
    VAR CurrentDate = MAX('Calendar'[Year])
    VAR StartDate = MINX(ALLSELECTED('Calendar'), [Year])
    VAR DateSelection = FILTER(ALLSELECTED('Calendar'), 'Calendar'[Year] > StartDate && 'Calendar'[Year] <= CurrentDate)
RETURN
    SUMX(DateSelection, [Total acquired revenue])
CAGR: Organic Revenue = 
    VAR BeginningDate = CALCULATE(MIN('Calendar'[Year]), ALLSELECTED('Calendar'[Year]))
    VAR EndingDate = CALCULATE(MAX('Calendar'[Year]), ALLSELECTED('Calendar'[Year]))
    VAR BeginningValue = CALCULATE([Organic revenue], FILTER('Calendar', 'Calendar'[Year] = BeginningDate))
    VAR EndingValue = CALCULATE([Organic revenue], FILTER('Calendar', 'Calendar'[Year] = EndingDate))
    VAR Years = (EndingDate - BeginningDate)
RETURN
    IF(BeginningValue <= 0, BLANK(), (EndingValue / BeginningValue)^(1/Years) - 1)

 

Thanks a ton

Shashank

 

@Ashish_Mathur 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
VijayP
Super User
Super User

@sgupta22 

If you can share the sample data , because I want to understand  "Organic" , so that I can give a better solution!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

Thank you for the response.  Unfortunately, this isn't exactly what I was looking for.  For example, the new column 'Org revenue' is the difference between Total revenue and Acquired revenue each year.  In my case, however, Organic revenue is the difference between Total revenue and the running total of Acquired revenue.  The data for Organic revenue would look something like this: 

sgupta22_2-1683286734132.png

 

And thus, if the slicer has years between 2018 and 2022, the CAGR for organic revenue would pick the beginning value of 133 and ending value of 193.  Instead, it takes the value for total revenue to compute the CAGR.  I believe this might be something to do with Organic revenue being dependent on running totals. 

 

I hope I haven't confused you more.

 

Regards

Shashank 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Great!  This worked perfectly thank you 🙂

 

If I may ask, I noticed that you changed the computation of Cumulative acquired revenue. Why was the previous calculation causing the issue? If the answer's complicated and would take up too much of your time to explain, please ignore this question 🙂

 

Thanks a ton

Shashank

You are welcome.  I do not know whether the previous calculation was an issue or not.  Since you had a Calendar table, i just chose to simplify/shorten your long measure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
VijayP
Super User
Super User

@sgupta22 

Try this video https://www.youtube.com/watch?v=p_t-l78iMQI&t=303s&pp=ygUQY2FnciBpbiBwb3dlciBiaQ%3D%3D

I hope you will achieve what exactly you are looking for!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi Vijay,

 

Thanks for your reply. Unfortunately, this didn't solve my issue. I think my issue is arising from the fact that Organic revenue in my case is based on running totals because of which Power Bi is not picking the right beginning and ending values.

 

Regards

Shashank

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.