Forum Discussion
MIkeMak
9 years agoRegular Visitor
Incremental percent
How do I calculate the column "incremental percent" in Power BI for example for column D1 the formula is =+C1/B1-1 , the formula for column D2 is =+SUM(C1:C2)/SUM(B1:B2)-1 and the formula for ...
- 9 years ago
Actually, after thinking about it, I think the VAR will be out of scope for the FILTER, so need to change this to:
measure = CALCULATE ( DIVIDE ( SUM ( Table[C] ), SUM ( Table[B] ) ) - 1, FILTER ( ALL ( Calendar ), Calendar[MonthNumber] <= MAX ( Calendar[MonthNumber] ) ) )
mattbrice
Solution Sage
9 years ago
Actually, after thinking about it, I think the VAR will be out of scope for the FILTER, so need to change this to:
measure =
CALCULATE (
DIVIDE ( SUM ( Table[C] ), SUM ( Table[B] ) ) - 1,
FILTER (
ALL ( Calendar ),
Calendar[MonthNumber] <= MAX ( Calendar[MonthNumber] )
)
)