Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
roee1983
Contributor III
Contributor III

SUB Totals

Hi All,

Need your help..

Please find attched table

is it  possible to make  sub totals llike :

a+b

a+b+c

a+b+c+e

a+b+c+d+e


it can be in strait table or pivot

Thanks

Roee


RollSum
a10
b5
c4
d3
e2
1 Solution

Accepted Solutions
qliksus
Specialist II
Specialist II

hi,

Maybe something like this

Subtotal:
LOAD * INLINE [     
    Roll,Sum  
    a ,10
    b ,5
    c, 4
    d ,3
    e, 2
];

for Each a in  'ab','abc','abce','abcde'

load

*,
if( SubStringCount('$(a)',Roll),'$(a)') as Group

Resident Subtotal ;

NEXT

DROP Table Subtotal;

View solution in original post

8 Replies
fkeuroglian
Partner - Master
Partner - Master

Hi Roee

se the attached

hope help

Fernando K.

sunny_talwar

Sub-totals? can you elaborate how your solution should like if what fkeuroglian‌ provided doesn't work for you?

Best,

Sunny

qliksus
Specialist II
Specialist II

hi,

Maybe something like this

Subtotal:
LOAD * INLINE [     
    Roll,Sum  
    a ,10
    b ,5
    c, 4
    d ,3
    e, 2
];

for Each a in  'ab','abc','abce','abcde'

load

*,
if( SubStringCount('$(a)',Roll),'$(a)') as Group

Resident Subtotal ;

NEXT

DROP Table Subtotal;

Not applicable

Hi Roee,

Please find the attachment, i hope it will help you.

Thank you !

Nandu

fkeuroglian
Partner - Master
Partner - Master

Nanda

Same xls

Same set expression

Same objects

Same result

Different qvw name

Really?

sunny_talwar

I hate when people do that

roee1983
Contributor III
Contributor III
Author

Hi,

Thank You

Which Dim and Exp did you use ?

Thanks

Roee

beck_bakytbek
Master
Master

Hi Susant,

did you do this example on the base of straight table?

thanks

beck