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: 
Anonymous
Not applicable

Sum repeated values​​.

Hello all.

I'm struggling to find the correct function.

In this table, the result must be 24.
The sum should consider the repeated numbers.

Thank you.

Labels (1)
4 Replies
Not applicable
Author

It looks like the equations is doing right.

Could you tell me why it should be 24?. Please explain the logic

Not applicable
Author

Try this:

aggr(sum( distinct Quant_Fornecedores),Fornecedor)

(Change the Total Mode to Sum of Rows)

Anonymous
Not applicable
Author


I need to count how many COD_FORNECEDOR  I have   for NRO_SEQ_PEDIDO.

Note that I have 2 different records in the field NRO_SEQ_PEDIDO
and 4 different records in the COD_FORNECEDOR field .

The correct result is 4 records.

NRO_SEQ_PEDIDO     COD_FORNECEDOR         SUM

                                                                             4

978645                              19022                            2

978645                              19782                           2

978795                                3112                           2

978795                                8782                           2

Not applicable
Author

Try  this

aggr(count(Distinct COD_FORNECEDOR),NRO_SEQ_PEDIDO)