Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Acumulation rutine grouped by several fields

Hi,

having a table like this:

load * inline [

hotel,year,month,amount,

bpt,2011,ene,1,

bpt,2011,feb,2,

bpt,2011,mar,3,

bpt,2011,abr,4,

bpt,2011,may,5,

bpt,2011,jun,6,

bpt,2011,jul,7,

bpt,2011,ago,8,

bpt,2011,sep,9,

bpt,2011,oct,10,

bpt,2011,nov,11,

bpt,2011,dic,12,

bpt,2012,ene,1,

bpt,2012,feb,2,

bpt,2012,mar,3,

bpt,2012,abr,4,

bpt,2012,may,5,

bpt,2012,jun,6,

bpt,2012,jul,7,

bpt,2012,ago,8,

bpt,2012,sep,9,

bpt,2012,oct,10,

bpt,2012,nov,11,

bpt,2012,dic,12,

bpt,2013,ene,1,

bpt,2013,feb,2,

bpt,2013,mar,3,

bpt,2013,abr,4,

bpt,2013,may,5,

bpt,2013,jun,6,

bpt,2013,jul,7,

bpt,2013,ago,8,

bpt,2013,sep,9,

bpt,2013,oct,10,

bpt,2013,nov,11,

bpt,2013,dic,12,

bco,2011,ene,5,

bco,2011,feb,7,

bco,2011,mar,9,

bco,2011,abr,11,

bco,2011,may,13,

bco,2011,jun,15,

bco,2011,jul,17,

bco,2011,ago,19,

bco,2011,sep,21,

bco,2011,oct,23,

bco,2011,nov,25,

bco,2011,dic,27,

bco,2012,ene,5,

bco,2012,feb,7,

bco,2012,mar,9,

bco,2012,abr,11,

bco,2012,may,13,

bco,2012,jun,15,

bco,2012,jul,17,

bco,2012,ago,19,

bco,2012,sep,21,

bco,2012,oct,23,

bco,2012,nov,25,

bco,2012,dic,27,

bco,2013,ene,5,

bco,2013,feb,7,

bco,2013,mar,9,

bco,2013,abr,11,

bco,2013,may,13,

bco,2013,jun,15,

bco,2013,jul,17,

bco,2013,ago,19,

bco,2013,sep,21,

bco,2013,oct,23,

bco,2013,nov,25,

bco,2013,dic,27];

How could I use 'rangesum' or 'for...next' or 'group by' or whatever or acombination of them to join an accumulation field by 'hotel' and 'year' like this?:

hotelyearmonthamountaccum by hotel&year
bpt2011ene11
bpt2011feb23
bpt2011mar36
bpt2011abr410
bpt2011may515
bpt2011jun621
bpt2011jul728
bpt2011ago836
bpt2011sep945
bpt2011oct1055
bpt2011nov1166
bpt2011dic1278
bpt2012ene11
bpt2012feb23
bpt2012mar36
bpt2012abr410
bpt2012may515
bpt2012jun621
bpt2012jul728
bpt2012ago836
bpt2012sep945
bpt2012oct1055
bpt2012nov1166
bpt2012dic1278
bpt2013ene11
bpt2013feb23
bpt2013mar36
bpt2013abr410
bpt2013may515
bpt2013jun621
bpt2013jul728
bpt2013ago836
bpt2013sep945
bpt2013oct1055
bpt2013nov1166
bpt2013dic1278
bco2011ene55
bco2011feb712
bco2011mar921
bco2011abr1132
bco2011may1345
bco2011jun1560
bco2011jul1777
bco2011ago1996
bco2011sep21117
bco2011oct23140
bco2011nov25165
bco2011dic27192
bco2012ene55
bco2012feb712
bco2012mar921
bco2012abr1132
bco2012may1345
bco2012jun1560
bco2012jul1777
bco2012ago1996
bco2012sep21117
bco2012oct23140
bco2012nov25165
bco2012dic27192
bco2013ene55
bco2013feb712
bco2013mar921
bco2013abr1132
bco2013may1345
bco2013jun1560
bco2013jul1777
bco2013ago1996
bco2013sep21117
bco2013oct23140
bco2013nov25165
bco2013dic27192

Thanks

0 Replies