Forum Discussion

alihijazi's avatar
alihijazi
Helper I
10 years ago

Margin % Calculation

Hello got the below table in which I'm displaying the sales by Engineer per year

 

what I want now is to calculate per engineer per year the Margin(%) which is calculated as follows (pseudo code):

for 2010: (sales (2010) - sales(2009)) / sales(2009)

 

if the Sales measure is defined as follows:

Sales = CALCULATE(sum(Transactions[cSales]),Transactions[SDLNTY]="SA" || Transactions[SDLNTY]="RG" )

 

what would be the sales of previous year?

Please advise

8 Replies