Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom Total(Decision) in Pivot table based on the Cell value

Hello i have a pivot table like this,

Dim1Dim2M
T
W
ASIAsource1452

source2260

source3075

Total(Decision)












So, Instead of taking total at the end i want to take some decion based on the values of souce1 source2 and source3 for every column.

for example, if in first row it should display Decision as EXE.

thanks

Lavi

8 Replies
Not applicable
Author

Any response for this question?

neha_shirsath
Specialist
Specialist

Hello Harleen,

Can u pls tell me what exactly total u want to display.

Coz in chart property> In Presentation tab u can select Dimension & Expresion and check on Show partial sums.

Not applicable
Author

hi

what you want exactly?

Not applicable
Author

@neha,

                 i don't want partial sums. if you look at above table,

for example for particular day  values are

source 1  4

source 2  2

Source 3 0

Result   EXE

So because Source3 has value Zero so i want to show Result is EXE. So, instead of showing sum at the End i want to show some Characters based on the above 3 values.

In the same way for second column values 5 ,6 7. I will say Result is OK.

So , some kind of Custom Total.

thanks

Harleen

Not applicable
Author

hi

    right clik on pivote-- > presentation---> select dimension ---> check on show partial sum

or

    add expression and write  ( Column(1) + Column(2) + Column(3) )

hope it helps you

Not applicable
Author

Vishwaranjan,

                     There is only one expression in the above pivot table.

so Column1 + Column2 + Column3 doesn't exisit.

Dim1 and Dim2 are Dimensions

and Monday(M), (Tuesday)(T) is also a dimension.

thanks

Harleen

Not applicable
Author

hi

what  you exactly want the total?

i think if you take all field as dimension then write sum(M+T+W).

er_mohit
Master II
Master II

hiii

use name and id in dimension and through inline function in script add total field value in same field of source

then use expression for M,T and W

alt(if(name='total' and tue=0,'ok',

if(name='total' and tue<>0,'exe',tue)))

hope it helps you