Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

'Same Store' Utilzation

Hi guys,

I'd like to see the growth of 'same store' volume (same store = not including new customers)

 

I have the following Table Data:

CUST SAP NumberRunYearMonthC17 Volume
1112020M073
1122020M075
1112021M0710
1122021M0711
1132021M072

 

 

Requested Output (in BOLD):

 

RunYearMonthYoY Same Store Growth
M07162.5%*
M08..

 

* Only using ratio for customers 111+112 as they existed in the previous period. 113 did not exist (new customer).

So calculation is (10+11)/(3+5)-1 = 1.625

 

thanks guys

3 Replies

  • Anonymous , move year to different table say date (This will work when the year is in the different table only

     

    This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
    Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

    diff = [This Year]-[Last Year ]
    diff % = divide([This Year]-[Last Year ],[Last Year ])

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak ,

      I'm getting an error with the last year one for some reason..

      Any Clue?

      Many thanks