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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
bansefi01
Contributor II
Contributor II

count items in subset

I need to count the different items in a data subset in a data array like the following:

IDTipoAmount
1Daño Total$3.00
2Daño parcial$5.00
3Daño elevado $1.00
4Daño elevado$7.00
5Daño Total$10.00
6Daño Total$3.50

The answer I would expect is as follows:

TipoclaimsAmount
Daño total3$16.50
Daño Parcial1$5.00
Daño elevado2$8.00

=count (distinct tipo) will give me 3

Can you help me please with the formula for COUNTING the claims at each sub set of TIPO ?

thanks

Labels (1)
2 Replies
trdandamudi
Master II
Master II

Is this what you are looking for ?

Data:
Load * Inline [
ID,Tipo,Amount
1, Daño Total, $3.00
2, Daño parcial, $5.00
3, Daño elevado, $1.00
4, Daño elevado, $7.00
5, Daño Total, $10.00
6, Daño Total, $3.50
]
;

vishsaggi
Champion III
Champion III

Just use Count(Tipo)