Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Nikhil2725
Creator II
Creator II

Addition

Hi Team,

I have a below table.

PH6PH6_descSales T/O
231546BV 5461163729
255373VAG Produkte1092099
221051El. fusion fitti. PB880487
201950Solv.cement fitt.me.874874
230152Solv. Cement Fit. mm689215
202956Ballvalves for water550592
230153Adapter Fittings mm531082
251313ELGEF Plus saddles464251
221043Pipe PB in bars451753
2J1J54Regulierarmaturen432843

 

Further I want to add new column as below. Kindly help me in doing this.

PH6PH6_descSales T/ONew ColumnDescription
231546BV 54611637291163729For the first row the value should be same as Sales T/O(1163729)
255373VAG Produkte10920992255828Addition of 1st row and 2nd row of Sales T/O(1163729+1092099)
221051El. fusion fitti. PB8804873136315880487+2255828
201950Solv.cement fitt.me.8748744011189874874+3136315
230152Solv. Cement Fit. mm6892154700404689215+4011189
202956Ballvalves for water5505925250996550592+4700404
230153Adapter Fittings mm5310825782078531082+5250996
251313ELGEF Plus saddles4642516246329464251+5782078
221043Pipe PB in bars4517536698082451753+6246329
2J1J54Regulierarmaturen4328437130925432843+6698082

 

 

40 Replies
Kushal_Chawda

Please share the actual sample data

Nikhil2725
Creator II
Creator II
Author

This is the sample data..

 

PH-6PH-6 nameSales T/OCumulative T/O
231546BV 5461,163,7291,163,729
255373VAG Produkte1,092,0992,255,828
221051El. fusion fitti. PB880,4873,136,315
201950Solv.cement fitt.me.874,8744,011,189
230152Solv. Cement Fit. mm689,2154,700,404
202956Ballvalves for water550,5925,250,996
230153Adapter Fittings mm531,0825,782,077
251313ELGEF Plus saddles464,2516,246,328
221043Pipe PB in bars451,7536,698,081
2J1J54Regulierarmaturen432,8437,130,924
251301PE Spigot Fittings393,1407,524,064
229641Containit Pipe290,1047,814,168
251314ELGEF Plus fittings248,4838,062,651
281557customizing245,2098,307,860
231161Contr.+ Check Valves240,7628,548,623
234539KH 546 PP224,1858,772,807
251312ELGEF Plus couplers216,3838,989,190
230162Accessories210,7839,199,973
234180Adapter Fittings mm176,6529,376,625
339695ele.act.ballvalve546171,3439,547,969
201951adap.fitt.pipe M/Gas171,3349,719,303
221050Socket fusion fi. PB161,1979,880,500
231158Diaphragm Valves160,30510,040,805
235188SYGEF pipes148,66410,189,469
251303PE Saddles146,66010,336,129
231567BV 567 PVC Wafer142,30110,478,430
339212Diaphragm Valves142,19510,620,625
281554Ventilation140,03410,760,660
339696pne.act.ballvalve546139,97210,900,632
348227Variable Area Flow M138,32711,038,958
235540KH 546 PVDF133,30711,172,265
234238Flanges123,58111,295,846
231149Ball Valves 353-355123,47611,419,323
339772MV DIASTAR116,45111,535,774
228473Tangit110,81711,646,592
232450Fittings CPVC109,42011,756,011
263405Fittings NEW105,79711,861,808
221039pipes d125-225102,02511,963,833
235190Butt Weld Fittings99,49512,063,328
234403Butt fusion ad.unio.96,59512,159,922
340220Sensors93,86812,253,790
127140PRIMOFIT end load92,26212,346,052
235191Adapter Fittings91,16312,437,215
358458Products by Frank89,01112,526,226
234179Butt Weld Fitting mm87,86812,614,094
237202Pipes85,95412,700,049
237773PVDFHP MV man78,98912,779,038
231001BV 543 PVC77,63612,856,674
230163Flanges PVC76,70012,933,374
154323Couplings standard73,95713,007,331
221061Valve PB72,30613,079,636
280177Pipes PP72,17813,151,814
339643Ele.actu. b.valve56770,13313,221,947
234637BV 567 PP-H  Wafer69,74913,291,696
265435Diaphragm Valve67,65913,359,355
268241Butt ada.fitting ISO67,21813,426,573
339215Solenoid valves63,42713,490,000
280244Pipes PE10061,88513,551,885
231780PVCU MV man58,24313,610,128
268240Butt weld fitting mm57,13513,667,263
221045Carrier for pipe55,96713,723,230
231156Ballval. 322-324,34354,28913,777,519
232541KH 546 C-PVC53,61313,831,132
234178Socket Weld Fitt. mm49,91713,881,049
339644Pne.act. b.valve 56748,33413,929,383
230166Adapter Fittings BS48,12513,977,507
251306Electrofusion Units47,90514,025,413
237249Butt Weld Fitting46,56414,071,977
237230Unions45,05714,117,033
280449Pipes PVC-C44,84814,161,881
243770Machine IR 110 sales42,35514,204,236
268332PEadapter fittingsMS39,21414,243,451
346251Ele. Rotary Actuator38,52314,281,974
226078PP HT-Syst.FittingIT33,95914,315,933
340333Transmitter33,34114,349,274
221600Butt fusi. d125-d22532,58914,381,863
268265Socket Weld Fittings32,22014,414,083
234182Diaphragm Valves31,90614,445,989
235421Butt fusion ada. un.31,26314,477,252
235189Socket Weld Fittings30,99414,508,246
234184Contr.+ Check Valves30,71014,538,956
231798ac.gen.5ind.of subd.30,27814,569,234
226077PP HT-System PipesIT29,48014,598,713
251305Tools/Inst. Acc.28,94714,627,661
233372Cool-Fit27,59014,655,250
202958Ball valves for irr.27,40514,682,655
228495Loctite26,13514,708,790
235774PVDF DV514,515,517,51926,08714,734,877
339216Electric posit. ind.25,95814,760,835
344232Sensors25,46114,786,296
235784SYGEF Exhaust System25,10114,811,396
215080Electr. control unit25,10014,836,496
346248Pilot Solenoid Valve24,52814,861,024
999999Dummy non-prod.24,42914,885,453
237206Diaphragm Valve24,04514,909,499
344334Transmitter23,54114,933,040
339214Angle Seat Valves22,61114,955,651
231160Angle Seat Valves22,07314,977,723
237423Butt fusion ada. un.20,50114,998,225
235193Diaphragm Valve Hand20,05515,018,280
231155Ball Valves 34618,73215,037,012
233197Socket Fitti. mm ABS18,65215,055,664
Kushal_Chawda

In your Table just sort the column you want to sort. For other column remove all the sort option (like for PH6,PH_desc) then I think original expression without aggr sorting option should work

Nikhil2725
Creator II
Creator II
Author

Hi, 

The above table is the combination of 2 to 3 tables and what ever i showed that is the final output i require..

 

Kushal_Chawda

I am asking to sort the field in front end chart and not in backend.

In chart properties->Sorting-> Sort only Sum(Sales T/0) expression. For rest uncheck all sort option

Nikhil2725
Creator II
Creator II
Author

I tried, but no luck its not sorting

 

Kushal_Chawda

please share your qvf file

Nikhil2725
Creator II
Creator II
Author

Please find the attached file

Nikhil2725
Creator II
Creator II
Author

Hi Kush,

Thanks for the support, however we cannot derive the output as I needed.

Please go through the link below.

https://community.qlik.com/t5/Qlik-Sense-App-Development/Table-will-not-sort-with-RangeSum/m-p/10249...

Kushal_Chawda

Yes. I got that.  See the attached. with some tricks you can do that