Forum Discussion
Zyg_D
5 years agoContinued Contributor
Subtracting data from predefined base date
This measure is expected for every date (6 of them) to take SUM(dfMain[a3_invoiced units]) and subtract the same from DATE(2020,9,21) . In the graph I see that the subtraction only happens on the fir...
- 5 years ago
Hi Zyg_D ,
Please refer to the following measure:
_m_A3_growth_cumul = VAR _base = DATE (2020,9,21) VAR _a3_sum_base = SUMX ( FILTER ( all(dfMain),dfMain[Date] = _base ), dfMain[a3_invoiced units] ) VAR _a3_sum = SUM(dfMain[a3_invoiced units]) VAR _a3_diff = _a3_sum - _a3_sum_base RETURN IF( ISBLANK(_a3_sum),BLANK(),_a3_diff)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
v-deddai1-msft
5 years agoCommunity Support
Hi Zyg_D ,
Please refer to the following measure:
_m_A3_growth_cumul =
VAR _base = DATE (2020,9,21)
VAR _a3_sum_base = SUMX ( FILTER ( all(dfMain),dfMain[Date] = _base ),
dfMain[a3_invoiced units] )
VAR _a3_sum = SUM(dfMain[a3_invoiced units])
VAR _a3_diff = _a3_sum - _a3_sum_base
RETURN IF( ISBLANK(_a3_sum),BLANK(),_a3_diff)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai