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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

Sum greater than 800 in pivot table

I have a following fields

RNo.   Month year   Quantity


I want to count only those RNo.'s in Pivot table who's sum greater than 800. I cannot apply dimension limits in Pivot Table

Any Idea how to achieve it?

thanks

Lavi

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You probably need something like this:

     Sum(Aggr(If(Sum(Quantity) > 800, 1), <dim1>, <dim2>, ...))

Where <dim1>, <dim2>, .... represent all the dimensions of your pivot table. The dimensions must be fields, not calculated dimensions.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=Sum(If(Sum(Quantity) > 800, 1))

Hope this helps you.

Regards,

Jagan.

Not applicable

Hi

check this condition

use this condition in expression tab

if(sum(amount)>800,count(Rno))

harleen_singh
Creator III
Creator III
Author

Hi arya,

               thanks but  it didn't worked perfectly in pivot table

ali_hijazi
Partner - Master II
Partner - Master II

As Arya is saying but check maybe you have to add an aggr to the sum(Amount) what is the dimension that you are using on your pivot table?

I can walk on water when it freezes
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You probably need something like this:

     Sum(Aggr(If(Sum(Quantity) > 800, 1), <dim1>, <dim2>, ...))

Where <dim1>, <dim2>, .... represent all the dimensions of your pivot table. The dimensions must be fields, not calculated dimensions.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein