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

pivottable expression

Hi

I have a problem with pivot table expression, my table is something like this:

 

ItemNumber101_Q101_A102_Q102_ATotal_QTotal_A104_Q104_A201_Q201_A202_Q202_A203_Q203_A
A100111112823193030120130
A1011312131326251104020110
A10223294126012060120
A10371091216221408015020

Ive used CrossTable I would like to calculate 201_A , 202_A and 203_A based on below formula:

201_A=201_Q * (Total_A / Total_Q) abd so on.

my qv file is attached, how can i do that?

1 Solution

Accepted Solutions
sunny_talwar

Check the attached

Capture.PNG

View solution in original post

18 Replies
sunny_talwar

What would be the calculation for 202_A and 203_A?

Anonymous
Not applicable
Author

Hi Sunny Talwar

202_A= 202_Q * (Total_A / Total_Q)

203_A =203_Q * (Total_A / Total_Q)

sunny_talwar

Are you open to some script changes? not too complicated... just adding a new field which will store the number before '_' in the itemnumber field

Anonymous
Not applicable
Author

sorry can you look at my qv file and share it, thanks.

sunny_talwar

I can, all I am saying is that are you okay with making script changes?

Anonymous
Not applicable
Author

yes I can

sunny_talwar

Check the attached

Capture.PNG

Anonymous
Not applicable
Author

sorry could you send the qv file. thank you so much

Anonymous
Not applicable
Author

wow what a wonderful solution. thank you so much