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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count values (>1) in Pivot Table

Hello, I have the following Pivot Table:

Paint 2.png

What I need is to count in the field # Atenciones (it's an expression) those values > 1 (without expansion)...

But the thing is that if I expand the field Cuenta, I could have 2 & 1 # Atenciones (3 in total).

Paint.png

How could I do that?

Thank you!!

5 Replies
giakoum
Partner - Master II
Partner - Master II

you need to use the aggr function.

aggr(count(# Atenciones), Categoria, cuenta)

Not applicable
Author

And how do I count if those values are >1 using that function? Thanks!

its_anandrjs
Champion III
Champion III

Hi,

Count the frequency in the load script and use it in expression.

Hope this helps

Thanks & Regards

giakoum
Partner - Master II
Partner - Master II

if(aggr(count(# Atenciones), Categoria, cuenta) > 1, 'do something', 'do something else')

Not applicable
Author

Hi Sam,

Use expression

=if(Count(TOTAL  #Atenciones)>1,Count(TOTAL #Atenciones)

This may help..