Subtracting values from groups

2019-08-10 02:43发布

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条回答
\"骚年 ilove
2楼-- · 2019-08-10 03:09

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.

查看更多
登录 后发表回答