Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Fixe Pivot Table result with any Selections on Fields

Hello,

I am a beginner on QlikView and i would like to show and freeze all values, but the result change when i select a field on the dimension:

Capture.PNG

When i select different elements on the field PC:

Capture.PNG

The values change and become bad:

Capture.PNG

The expression here is:

=SUM(TOTAL <PC> Val*Weight)/SUM(Total Val*Weight)

Do you have an idea of the problem please ?

Thanks in advance for your responses,

Sébastien.

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=SUM(Val*Weight)/SUM(Total {<PC>}Val*Weight)

View solution in original post

9 Replies
Chanty4u
MVP
MVP

did u try with ALL

=SUM(All<PC> Val*Weight)/SUM(All Val*Weight)

Kushal_Chawda

try this


=SUM(Val*Weight)/SUM(Total <PC>Val*Weight)

sunny_talwar

May be this:

=SUM(Val*Weight)/SUM(Total {<PC>}Val*Weight)

tamilarasu
Champion
Champion

If you don't want the selections to affect the pivot table, you can try below expression.

=SUM( {1} Val*Weight)/SUM( {1} Total <PC>Val*Weight)

Anonymous
Not applicable
Author

I tried but Qlikview shows me an error 😕:

Capture.PNG

santhosh_k_n
Creator II
Creator II

Hi Sebaastien,

You try either of the two options,

1. Try to use alternate state or detach the object from the report inorder not to apply the filters

2. Use set analysis in the expression

BR

SK

Anonymous
Not applicable
Author

It works perfectly, thanks a lot :

Capture.PNG

Capture.PNG

But when i choose another table (here DESK) which is connected to PC, the problem appears again :/:

Capture.PNG

Capture.PNG

The expression is:

=SUM(Val*Weight)/SUM(Total {<PC>}Val*Weight)

Thanks in advance for your help,

Sébastien.

sunny_talwar

May be ignore Desk also

=SUM(Val*Weight)/SUM(Total {<PC, Desks>}Val*Weight)


or ignore all selections in the denominator?


=SUM(Val*Weight)/SUM(Total {1}Val*Weight)

Anonymous
Not applicable
Author

Perfect ! The first solution works great .

But not the second 😕