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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate total amount

Hello, everyone.

I have the following table:

Capturaqv.JPG

- DETAIL LEVEL 8 accounts have values in the table. Because of that, I can SUM(Amount) and get the desired amount (100, 150, 50...).

- DETAIL LEVEL 7 accounts DO NOT have values in the table. For these, what I want to do is to get the total from the sum of its level 8 accounts. For instance, for the first row, 2641.51111 = 2641.51111.1 + 2641.51111.2 + 2641.51111.3 = 100 + 150 + 50 = 300. Thus, I would like the first row to totalize 300. In the very same way I would want 2641.51112 to sum 200 + 800 = 1000.

Can this be achieved?

Thank you very much.

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

If([DETAIL LEVEL] = 8, Sum(Amount), Sum(TOTAL <[BUSINESS UNIT], [OBJECT ACCOUNT]> Amount))

View solution in original post

3 Replies
sunny_talwar

May be like this:

If([DETAIL LEVEL] = 8, Sum(Amount), Sum(TOTAL <[BUSINESS UNIT], [OBJECT ACCOUNT]> Amount))

Not applicable
Author

I love you. It is indeed, Sunny T.

I thank you immensly.

sunny_talwar