Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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

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)