Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Subtract previous aggregated week value

Hi there, 

 

I am trying to find a measure which calculates the aggregated quantity by week and subtracts it from the overall value.

 

My template is this Excel chart, it basically takes the overall quantity and subtracts the 'Note1 submissions' each given week from the previous week result (note: there are gap weeks with no values)

 

The column 'Bericht[Geplante Note 1Jahr]' values are weekly Dates in the Format dd.mm.yyyy, therefore there are multiple dates starting at the same Monday of a week.

 

I tried using this measure but returns blank

 

Overdue PPAPs = 
CALCULATE(COUNT(Bericht[Geplante Note 1Jahr]), 
          FILTER(Bericht, Bericht[Note1 Rank] = MAX(Bericht[Note1 Rank]) -1 ))

 

 

Is there a way to rebuild the chart above in PowerBI?

 

3 Replies