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
AdiKujan
Frequent Visitor

Year over Year growth with multiple years

Hi guys,

 

I have a table with multiple rows, "years" as columns, and "revenue" as value. What I want is to create a measure which calculates the following:

 


Revenue (year in column)  / Revenue (Year in previous column)


This way i get a year to year revenue growth.  

 

I can only manage to find a way to create a measure which creates the value of the previous year, but not the growth of the previous year compared to that previous year.

 

 

For example I need the measure to calculate  2019/2018, but also 2018/2017, and 2017/2016.

 

 

Quick measures wont work.

1 ACCEPTED SOLUTION

Hi @v-frfei-msft,

I can post a screenshot of the table how I got him after using my solution.

Hopefully this will help someone else in the future.

Naamloos.png



Kind regards,
Adi

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @AdiKujan,

 

Could you please share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft,

I can post a screenshot of the table how I got him after using my solution.

Hopefully this will help someone else in the future.

Naamloos.png



Kind regards,
Adi

AdiKujan
Frequent Visitor

YoY =
IF(   YEAR(   LASTDATE(   'Date Table'[Date]   )   )  =  2017;
      BLANK()
            ;IF(YEAR(LASTDATE('Date Table'[Date]))=2018;
                  SUM(Revenue Table[Revenue]) / CALCULATE(SUM(Revenue Table[Revenue]) ;'Date Table'[Year]=2017 ;                   ALL('Date Table'))
                        ;IF(YEAR(LASTDATE('Date Table'[Date]))=2019;
                                 SUM(Revenue Table[Revenue]) / CALCULATE(SUM(Revenue Table[Revenue]) ;'Date  Table'[Year] =2018
                                 ;ALL('Date Table'))
                        )
             )
)

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.