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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cumulative sum in tree

Hello,

I have this table:

img1.JPG.jpg

I need this result:

img2.JPG.jpg

I need in QlikView the same comand SQL, for exemplo select sum(total) from table where FTEC_Arvore like FTEC_Arvore + '*'

Or other solution....

Thanks!

1 Solution

Accepted Solutions
5 Replies
whiteline
Master II
Master II

Hi.

You can parse the hierarchy FTEC_Arvore in script with SubField function.

Create separate field for each level.

Then you can easily calculate total in pivot table.

Not applicable
Author

Hi,

Yes, it's possible. But i don't want create many column i need 1 column, because the tree grows without limits...

whiteline
Master II
Master II

Don't understand the result.

You have many rows and three sets of rows that overlap with each other.

So you can get three values. How the resulting table should look like ?

Not applicable
Author

I need sum the node, for example:

sum the node 12250/20207

sum the node 12250/20207/35426

sum the node 12250/20207/35426/35734

view this link about more informations:

http://community.qlik.com/message/450309?et=watches.email.thread#450309

Not applicable
Author