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: 
Anonymous
Not applicable

Pivot table total

mon.PNG.png

Here in the above pivot table .... i want the [final performance] Total and the expression for it is ...

=(if(Dimensionality()=1,

  [Coperate SLP]*Performance

  ))

23 Replies
Anonymous
Not applicable
Author

after.PNG.png

After

=(if(Dimensionality()<=1,

  [Coperate SLP]*Performance

  ))

its like this ..Actually i want the sum of 109+0

As 109 to be appeared over there .

simenkg
Specialist
Specialist

if(Conditionality() = 0,

     sum(Aggr(avg([Coperate SLP])*[Performance]),Group))

     ,  

if(Dimensionality()=1,

  [Coperate SLP]*Performance

  ))

)

Anonymous
Not applicable
Author

i m not able to place this expression will you help by remote .....

simenkg
Specialist
Specialist

No.

You put that as the expression called Final Performance.

The reason it might not work is because you are referencing another column. Replace the [Coperate SLP] and [Performance] with the actual expressions used to calculate them.

Anonymous
Not applicable
Author

Actually there i want to display sum of the values which got to be obtained in Final Performance .....

avtually if u see u can get it i think

simenkg
Specialist
Specialist

I understand, but if you want the sum of Final Performance shown on the Total line for Final Performance, then you have to use the whole expression as the expression for Final Performance.

If(Dimensionality() = 0,

     Then we do this calculcation for the Total line,

     if(Dimensionality() = 1,

          Then we do this calculation or the sub total line

     ,

          Then we do this calculation for every normal line

))

Anonymous
Not applicable
Author

yes i have tried many like that but i m not getting result and fed up with it ...can u c through remote once please

simenkg
Specialist
Specialist

I am sorry, but I will not.

Create a new expression that is just:

Dimensionality()

Create another that is:
SecondaryDimensionality()

Then in your IF()-statement use the combination of the two that appears on your total line.

Anonymous
Not applicable
Author

can i send u the expressions of [ corporate Slp ]  and Perfromance .

ya write expression i tried many so.

Anonymous
Not applicable
Author

can u please help me to write expression .