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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

partial sum of the column on a pivot table

Hello,

I need help, I have this pivot table:

Fig.1:


The column A : count(distinct id) and It's correct.

The column B is wrong :

Fig.2:

The column B must be (red bold):

greetings thank you very much

Valentina

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count(total <Domanda, Mese> distinct id)


talk is cheap, supply exceeds demand

View solution in original post

14 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

maybe aggr(nodistinct count(distinct id), Risposta)

salto
Specialist II
Specialist II

Hi,

column B, try with:


=count({<Risposta=>} distinct id)

Hope this helps.

tresesco
MVP
MVP

For column B, in expression use  TOTAL Keyword with dimension

Not applicable
Author

fig.1 have total but it's not correct , it's a column total.

Not applicable
Author

I tried all of these solutions, but these aren't correct 😞

bbi_mba_76
Partner - Specialist
Partner - Specialist

I made a test using sum(not count) and the expression =aggr(nodistinct sum(Val), Domanda, Mese)

israrkhan
Specialist II
Specialist II

Finally, Could you share an Example or your doc...

CELAMBARASAN
Partner - Champion
Partner - Champion

You could try this

Count(Total<Domanda, Mese, Riposta> Distinct id)

Also you couldn't explained what expression is there in B

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count(total <Domanda, Mese> distinct id)


talk is cheap, supply exceeds demand