Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mohsenalam
Frequent Visitor

Calculate Average Growth Rate over Weeks

I would like to calculate growth rate and average growth rate from a table like this

dateregionteamstorage
9/1/2023AA1100
9/1/2023AA220
9/1/2023AA330
9/8/2023AA1120
9/8/2023AA225
9/8/2023AA335
9/15/2023AA1130
9/15/2023AA230
9/15/2023AA340


I would like to create a visual showing growth rate for each region and/or team. For instance, the result view should like this

Dateregionteamweek-to-week growthtotal growth
9/8/2023AA120%20%
9/15/2023AA18.33%30%

 

What would be the best way to do that using DAX query?

1 ACCEPTED SOLUTION
BeaBF
Impactful Individual
Impactful Individual

@mohsenalam Hi!  Create a table visualization and place the following fields in the columns:

  • Date
  • Region
  • Team
  • Total Growth (use the Total Growth measure)
  • Week-to-Week Growth (use the Week-to-Week Growth measure)

Measures
Total Growth =
SUM('YourTableName'[storage]) - CALCULATE(SUM('YourTableName'[storage]), PREVIOUSMONTH('YourDateTable'[Date]))

Week-to-Week Growth =
DIVIDE([Total Growth], CALCULATE(SUM('YourTableName'[storage]), DATEADD('YourDateTable'[Date], -7, DAY)))

BBF



View solution in original post

2 REPLIES 2
BeaBF
Impactful Individual
Impactful Individual

@mohsenalam Hi!  Create a table visualization and place the following fields in the columns:

  • Date
  • Region
  • Team
  • Total Growth (use the Total Growth measure)
  • Week-to-Week Growth (use the Week-to-Week Growth measure)

Measures
Total Growth =
SUM('YourTableName'[storage]) - CALCULATE(SUM('YourTableName'[storage]), PREVIOUSMONTH('YourDateTable'[Date]))

Week-to-Week Growth =
DIVIDE([Total Growth], CALCULATE(SUM('YourTableName'[storage]), DATEADD('YourDateTable'[Date], -7, DAY)))

BBF



Thanks @BeaBF 

It worked!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors