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: 
ilanbaruch
Specialist
Specialist

pivot expression total

hi All,

 

in my model i have a pivot table with an expression based on another expression (column()).

the rows are presented OK but the total is taking all the rows into the value. i.e. :

dim1expression aexpression b
total47.447.4
abc160
abd2828
abe3.40

 

the total of expression b should be 28.

 

any ideas ?

advanced thanks

Labels (1)
3 Replies
Kushal_Chawda

@ilanbaruch  For that expression, change the Total Model  as " Sum" Of rows.

Kush_0-1607871377476.png

 

ilanbaruch
Specialist
Specialist
Author

this option is greyed out 

ilanbaruch_0-1607928534852.png

 

MayilVahanan

Hi @ilanbaruch 

Try like below

If(Rowno() = 0 or isnull(Rowno()), Sum(Aggr(urexpression, dim1)), urexpression)


Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.