Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

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

Capture.PNG

sunny_talwar
MVP
MVP

Or use this

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

rubenmarin
MVP
MVP

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

Edit: Ok, thanks Sunny.