Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner
Partner

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

View solution in original post

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.