Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Total and if statement

Hei,

I faced a little issue:

Screenshot_2.jpg

I've attached also and the test.qvd.

Could you help me?

Thank you!

1 Solution

Accepted Solutions
sunny_talwar

May be use Sum of rows if this is a straight table like your sample

Capture.PNG

View solution in original post

3 Replies
sunny_talwar

May be use Sum of rows if this is a straight table like your sample

Capture.PNG

sunny_talwar

Or use this

Sum(Aggr(If(Sum(F2 - 1)/Sum(F2)<=0.5, Sum(F2), Sum(F2 - 1)), A, F2))

rubenmarin

Hi, can you explain the issue? Maybe you want "Sum(F2) - 1" (the -1 outside parenthesys) for Diff?

Edit: Ok, thanks Sunny.