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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
BabyBinki821
Helper I
Helper I

Weekly Growth Rates

Hi

 

Another DAX measure that is driving me nuts. I have bar chart with cumulative accounts over time. I am tring to calculate the growth rate from week to the next. I cannot figure it out 😞 Any sugestions. And here is the measure that a kind person helpe me out with where I am getting the cumulative account amounts.

 

Total Ordering Accounts =
VAR FirstDateInSlicer =
MIN ( 'Date'[Date] )
VAR LastDateInFilter =
MAX ( 'Date'[Date] )
VAR CurrentDateInFilter =
MAX ( 'DATE'[WEEK END])
RETURN
CALCULATE (
COUNTA('Ordering Accounts'[FIRST ORDER]),
ALLEXCEPT ( 'Date', 'Date'[Date] ),
'Ordering Accounts'[FIRST ORDER]<= CurrentDateInFilter)

 

BabyBinki821_0-1649761710663.png

 

2 ACCEPTED SOLUTIONS

Thank you!!! This worked perfectly. One question - some of the %s are off by one decimal - what would be the reason for that. Both my total ordering accounts and previous week are set as whole numbers.

View solution in original post

Hi:

I'm wondering if it's a rounding thing? 

You could try some rounding functions like

The following expression rounds 1.3 to the nearest multiple of .2. The expected result is 1.4.

DAXCopy
 
= MROUND(1.3,0.2)  

:Can you markthe initial question as solved? Thanks...

 

View solution in original post

4 REPLIES 4
BabyBinki821
Helper I
Helper I

Thanks!

Whitewater100
Solution Sage
Solution Sage

Hi:

It looks like you have weekending or week no in your date table, which is great. Usinging week no. is easier for this measure. If you want to figure the week to week growth on the cumulative measure I beleive you can try these measures(2):

 

Previous Week [Tot Ord Accts] = CALCULATE([Total Ordering Accounts], FILTER(ALL(Dates),
Dates[Year] = SELECTEDVALUE(Dates[Year]) && Dates[Week No.]= SELECTEDVALUE(Dates[Week No.])-1))
 
*Note - see how I have [Week No. Above]?  As a Calc col in your datetable 
Week No. = WEEKNUM('Date'[Date])
 
To figure % change from week to week:
Weekly Change = 
VAR weekdiff =  [Total Ordering Accounts] - [Previous Week [Tot Ord Accts]
return
DIVIDE(weekdiff, [Total Accounts Ordering],0]
 
This is comparing cumulative week to prev cumulative week. If you want to do just do this on just week to week rresults (not on cumulative) you use your basic [Ordering Accounts] measure instead of the cumulative [Total Ordering Accounts] measure. This will give you the true week on week change.
 
I hope this helps!

Thank you!!! This worked perfectly. One question - some of the %s are off by one decimal - what would be the reason for that. Both my total ordering accounts and previous week are set as whole numbers.

Hi:

I'm wondering if it's a rounding thing? 

You could try some rounding functions like

The following expression rounds 1.3 to the nearest multiple of .2. The expected result is 1.4.

DAXCopy
 
= MROUND(1.3,0.2)  

:Can you markthe initial question as solved? Thanks...

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.