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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
JASalinas
Creator
Creator

Line Graphic Sum

Hi my Friends, I need your help, I have the next measure

=(Sum({<[YearPeriod] = {"2021"},[ACCNT_CODE]={"10*","36*"}>}[AMOUNT]*-1)
+ (sum({<[YearPeriod] = {">=1844 <=2020"},[ACCNT_CODE]={"10*","36*"}>}[AMOUNT]*-1)))

And shows the following graph

JASalinas_0-1627325500733.png

It shows me the monthly balance but I want it to show me in January the result of the sum of December + January, in February the result of the sum of January + February, in March the result of the sum of February + March etc.

Ex. January 8,944,830.98 - 511,809.44 = 8,433,021.54

       February 8,433,021.54 + 3,917,866.98 = 12,350,888.50

       March      12,350,888.50 + 171,594.98 = 12,522,483.50 etc.

Thank your help.

Labels (1)
2 Solutions

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

I think you are going to need to do something like;

RangeSum(Above(Sum( ... Your Measure ...),0,2))

You might need to tweak your set analysis depending on how the numbers come together for Dec/Jan at the start.

Cheers,

Chris.

View solution in original post

JASalinas
Creator
Creator
Author

Yes My Friend, I have to change the meseure, but This work with you answer... thank you very much...

(RangeSum(Above(Sum({<[YearPeriod] = {">=1844 <=$(=YearPeriod)"}, [ACCNT_CODE]={"10*","36*"}>}[AMOUNT]*-1), 0, RowNo())))

View solution in original post

3 Replies
chrismarlow
Specialist II
Specialist II

Hi,

I think you are going to need to do something like;

RangeSum(Above(Sum( ... Your Measure ...),0,2))

You might need to tweak your set analysis depending on how the numbers come together for Dec/Jan at the start.

Cheers,

Chris.

JASalinas
Creator
Creator
Author

Hi my Friend, I tried but don't work, just advanced one month...

JASalinas
Creator
Creator
Author

Yes My Friend, I have to change the meseure, but This work with you answer... thank you very much...

(RangeSum(Above(Sum({<[YearPeriod] = {">=1844 <=$(=YearPeriod)"}, [ACCNT_CODE]={"10*","36*"}>}[AMOUNT]*-1), 0, RowNo())))