Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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.

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)