I faced a little issue:
I've attached also and the test.qvd.
Could you help me?
May be use Sum of rows if this is a straight table like your sample
Or use this
Sum(Aggr(If(Sum(F2 - 1)/Sum(F2)<=0.5, Sum(F2), Sum(F2 - 1)), A, F2))
Hi, can you explain the issue? Maybe you want "Sum(F2) - 1" (the -1 outside parenthesys) for Diff?
Edit: Ok, thanks Sunny.
Retrieving data ...