Subtracting values from groups

穿精又带淫゛_ 提交于 2019-12-11 06:27:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!