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

Find growth between two periods

Hello, I want to find the absolute and % growth over 2015-2020 using my total sales data. What command should I use? Much appreciated! 

 
 
 

for Powerbi community.JPG

 

 

1 ACCEPTED SOLUTION

Hi @rulefox13 ,

 

You could use Min() and Max() function.

Check the measures below.

start = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Year]=MIN(dates[year])))

end = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Year]=max(dates[year])))

Measure = ([end]-[start])/[start]

1.PNG2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @rulefox13 ,

 

I'm not sure what you mean two periods. You want compare sales over 2015-2020 to total sales?

Please show some sample data and expected result to us.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi Jay,

 

I am trying to find the growth rate between to year periods. e.g. 

 

Year   Sales

2015  100

2016  150

2017  180

2018  220

2019  250

2020  290

 

I want to find out how to calculate the growth rate between 2015-2020 (Sales growth between between 100 and 290). The answer should be 190%. 

Hi @rulefox13 ,

 

You could use Min() and Max() function.

Check the measures below.

start = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Year]=MIN(dates[year])))

end = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Year]=max(dates[year])))

Measure = ([end]-[start])/[start]

1.PNG2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
ryan_mayu
Super User
Super User

@rulefox13 

If you don't have a date column in sales table , you can create it and build the relationship with date's date column.

please see the attachment . hope this is helpful.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi, thanks for your reply. However, you seem to have provided year over year growth. I am looking for growth between two years. For example,

 

Year   Sales

2015  100

2016  150

2017  180

2018  220

2019  250

2020  290

 

I want to find out how to calculate the growth rate between 2015-2020 (sales growth between between 100 and 290). The answer should be 190%. 

 

 

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.