Forum Discussion
nandhinielango
8 years agoFrequent Visitor
Subtraction from different rows
Hi All, I need to calculate the following in incremental pattern. Period Value (cumulative) Value (incremental) Remarks Apr-17 100 100 For the start of each FY, mean...
Zubair_Muhammad
8 years agoCommunity Champion
Try this calculated column
Incremental =
VAR CurrentLine =
PREVIOUSMONTH ( TableName[Period] )
RETURN
IF (
MONTH ( TableName[Period] ) = 4,
TableName[Value (cumulative)],
TableName[Value (cumulative)]
- CALCULATE (
SUM ( TableName[Value (cumulative)] ),
FILTER ( ALL ( TableName ), TableName[Period] = CurrentLine )
)
)Zubair_Muhammad
8 years agoCommunity Champion