问题
I have a group having 2 different dates. The result that it outputs is like this:
PeriodID-----GroupName-----Value
16-----FUEL-----200
15-----FUEL-----800
Now I want to subtract 200 from 800. and desired result is 600
How Do I subtract these values from same group? any idea?
回答1:
This should work.
Create a formula and write below code.
Evaluateafter(firstproduct<Formula>);
Evaluateafter(Secondproduct<Formula>);
sum(<Product1>,<Dategrouping>)-sum(<Product2>,<Dategrouping>)
now you have the end result.
If this doesn't work let me know.
来源:https://stackoverflow.com/questions/20392626/subtracting-values-from-groups