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

Pivot table showing values incorrect?


Hi,

I have below straight table in qvw.

                                                                                                                                                                                                                                                                           

CustomerIDOpen to CloseClose to ReenterReenter To WarehouseOpen To Staff
125218.2102116
136317.09998
1410748.010295
155430.520067
167920.910648
178029.391109
1810842.48232
198030.784123
207813.57555
2110617.293119
224534.99892
236542.29746
244222.89955
2010420.896116
33920.392137
410424.110870
655928.7102131
897314.16493
906234.984138
1218038.87740
1002612.39098
19178.69749
22517.593
36312.18540
45118.975
52819.770
784191
983095
229494
112278
552782
7783385
666685
443682
3333
231
32130
121140
1000145

                                                                                                                                                                                          

I have to create pivot table as below in qvw

                                          

DataOpen to CloseClose to ReenterReenter To WarehouseOpen To Staff
Min22123032
25%40188252
Median63229293
75%803499116
Max10879200138
IQR41161764

Min = minimum(Open to Close)

25% = PERCENTILE(Open to Close,0.25)

Median = =MEDIAN(Open to Close)

75% = PERCENTILE(Open to Close,0.75)

Max= maximum(Open to Close)

IQR = 75%-25%

similarly same formulas for other columns.

I created pivot table using ValueList('Open to Close','Close to Reenter','Reenter to Warehouse','Open to Staff') as dimension but values are showing wrong. is there any way that I can do this correctly.

please can anyone suggest me.

Thanks.

11 Replies
Not applicable
Author

Can anyone suggest me please how to sort out the pivot table with correct values.

PradeepReddy
Specialist II
Specialist II

see the attachment.. it might be helpful for you..

Not applicable
Author

Thanks. how can I use cross table by using calculated values of straight table? I need out put shown like pivot table by considering values of straight table.

Not applicable
Author

I am really struggling to get this done. Any help please

jduenyas
Specialist
Specialist

Is this acceptable?

PradeepReddy
Specialist II
Specialist II

Without Calculated dimensions, we can showcase something like in the attachment...

ecolomer
Master II
Master II

Is this you need?

jduenyas
Specialist
Specialist

Actually, Pradeep's solutions are correct and by far better than mine.

You may want to close this one and mark his solution as correct.

Not applicable
Author

Thanks. what I mean is the values I have in straight table is calculated using expressions. then how can I use cross function for these calculated values. I understand your solution. the solution which you provided is taken from the values that I added in post. but this is sample data. the values which I have is calculated using expressions in straight take itself. I can not take the values every time to excel file or inline table to use cross function.

Please let me know how can I get this?

sorry if I am not clear in my explanation