Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: 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?

18 Replies
Anonymous
Not applicable
Author

Mr Sunny Talwar

One more question! how to use background expression in pivot table, for example, I want to use light gray for 101-Q to 104-A Columns.

kakani87
Specialist
Specialist

Something like this?

Backgroung exp as - if(match (Transaction,'101_Q','101_A','102_Q','102_A','Total_Q','Total_A','104_Q','104_A'),RGB(192,192,192))

300857.png

Anonymous
Not applicable
Author

That is right.

Anonymous
Not applicable
Author

sorry again

in my pivot table like below:

   

ItemNumberTransaction101_Q101_A102_Q102_ATotal_QTotal_A104_Q104_A201_Q201_A
A100 111112823190032
A101 1312131326250044
A102 2329412001236
A103 710912162200811
جمع 333636426978002753

as you see the 104_Q and 104-A for all item number is zero, thus it should be removed; how to do that?

kakani87
Specialist
Specialist

In presentation tab try

check -> Supress Zero-Value

Anonymous
Not applicable
Author

It does not work

Anonymous
Not applicable
Author

thanks it works

Anonymous
Not applicable
Author

but why my it affected my background color?

Anonymous
Not applicable
Author

you know for example in some columns zero value does not get background color.