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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Frank_Hartmann
Master II
Master II

Opening Amount

Hi,

i try to show Opening Amount  over a period of four months.

however only the second month (Feb) shows the correct values for Opening .

Mar and Apr are  showing 0.

How to get the TOTAL Values of the above months Description into the Opening Field ?

And how to get the correct Value for TOTAL in Feb, Mar, Apr?

Unbenannt.png

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Check this out

if(sum(Opening)=0,

Sum(Aggr(RangeSum(Above(Sum(Opening) + Sum(Contributions1) + Sum(Contributions2), 1, RowNo())), Description, Date)), Sum(Opening))

Capture.PNG

View solution in original post

8 Replies
sunny_talwar
MVP
MVP

May be this

If(sum(Opening)=0,

Sum(Aggr(Above(Sum(Opening) + Sum(Contributions1) + Sum(Contributions2)), Description, Date)), Sum(Opening))

Capture.PNG

sunny_talwar
MVP
MVP

But shouldn't the total change based on the new opening and then the opening for the subsequent month should also change?

Frank_Hartmann
Master II
Master II
Author

Yes exactly! The Opening is now correct but

the TOTAL should always consider the new Opening Amount!

sunny_talwar
MVP
MVP

Use this for Total....

Column(1) + Column(2) + Column(3)

But since the total changed, would you not want the Opening to be based on new Total

Frank_Hartmann
Master II
Master II
Author

Exactly , thats the problem 🙂

sunny_talwar
MVP
MVP

Check this out

if(sum(Opening)=0,

Sum(Aggr(RangeSum(Above(Sum(Opening) + Sum(Contributions1) + Sum(Contributions2), 1, RowNo())), Description, Date)), Sum(Opening))

Capture.PNG

Frank_Hartmann
Master II
Master II
Author

thank you so much sunny

sunny_talwar
MVP
MVP

No problem at all... I am glad I was able to help