Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Kindly find below table and required otuput. This needs to be achieved in frontend. Please assist.
Channel | Value % | Calculation ! | Required Output |
A | -15 | If(Negative then 0) | 0 |
B | 5 | -15+5 = -10 (Again negative then 0) | 0 |
C | 13 | -10 + 13 = 3 | 3 |
D | 32 | 32 | |
E | 65 | 65 | |
Total | 100 | 100 |
Regards
Sumeet
May be try this
=If(Alt(Above(RangeSum(Above(Sum(Value), 0, RowNo()))), -1) < 0, RangeMax(RangeSum(Above(Sum(Value), 0, RowNo())), 0), Sum(Value))
Hi, try this,
tmp:
LOAD * Inline [
Channel, Value
A, -15
B, 5
C, 13
D, 32
E, 65
];
tmp1:
LOAD
Channel,
Value,
if(RowNo() = 1, Value,
Peek(x) + Value) as x
Resident tmp;
DROP Table tmp;
tmp2:
LOAD
*,
if(y < 0, 0, y) as z;
LOAD
*,
if(Peek(x) > 0, Value, x) as y
Resident tmp1;
DROP Table tmp1;
DROP Fields x,y;
Reguards
try this
create one straight table and
add the dimension as channel
expression 1 as sum(value)
expression 2 as =if(RangeSum(Above(Value,0,2))<0,'0',RangeSum(Above(Value,0,2)))
May be try this
=If(Alt(Above(RangeSum(Above(Sum(Value), 0, RowNo()))), -1) < 0, RangeMax(RangeSum(Above(Sum(Value), 0, RowNo())), 0), Sum(Value))
great
Great Sunny..!!! Thanks a ton
Regards
Sumeet