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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
Labels (1)
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
MVP
MVP

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
MVP
MVP

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