Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Stefano_Roma
Contributor II
Contributor II

Sum e aggr in pivot

Salve ho bisogno di aiuto.

Ho una pivot e vorrei avere questo risultato.

Mi serve il conteggio totale (Clienti) per ogni voce della riga per per singola colonna e non il totale di tutto.

Immagine2.png

Usando : sum ( Aggr( COUNT(distinct Clienti ),Riga))

Ho questo risultato ERRATO

 

 

1.png

Usando : sum ( TOTAL Aggr( COUNT(distinct Clienti ),Riga))

Ho questo risultato ERRATO

2.png

Qualcuno può essermi di aiuto?

Grazie in anticipo

Stefano

Labels (1)
5 Replies
Qrishna
Master
Master

some sample data please?

Stefano_Roma
Contributor II
Contributor II
Author

Ciao Qrishna ti ho preparato un file excel con i dati.

Colonne = Production

Righe = Type

Mi occorre il conteggio dei Customer

Come da esempio ( i dati sono indicativi per il risultato e non sono i reali del file excel)

esempio2.png

Grazie

 

Qrishna
Master
Master

count(distinct Customer)  with Type and Pruction as Dimensions should work fine

you can try below expressions but they yield the same numbers
//sum(Aggr(count( distinct Customer), Type, Pruction))
//count( total<Type, Pruction> distinct Customer)

2490794 - Sum and aggr in pivot.PNG

let me know once you have tried.

Stefano_Roma
Contributor II
Contributor II
Author

Nulla.

Nelle celle dei LOTTI non ho il totale TIPO

Per ogni LOTTO mi aspetto il totale di TIPO

Per esempio alla riga TIPO1 in ogni cella per ogni LOTTO mi aspetto 319 e non un numero variabile.

esempio3.png

Stefano_Roma
Contributor II
Contributor II
Author

Qrishna , mi avevi risposto e funzionava la tua proposta.

Grazie