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
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
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.