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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
tim_m
Partner - Contributor III
Partner - Contributor III

Rangesum() funktion with a specific year

Hi Folks,

my Expression of rangesum looks like:

rangesum( above( sum(Sales),0,rowno())) and it works.

But I want to integrate the year information: When I change my expression in the following one, the datastream disappears and the chart is empty.

rangesum( above( sum({<year={"<=$(vActJahr) >=$(=$(vActJahr)-1)"},month={"=$(=vActMonat)"}>}Sales),0,rowno()))

What I am doing wrong?

Thanks a lot,
Tim

1 Solution

Accepted Solutions
Anonymous
Not applicable

maybe try this...


rangesum(above( sum({<year={">=$(=$(vActJahr)-1) <=$(=$(vActJahr))"},month={"=$(=vActMonat)"}>}Sales),0,rowno()))


View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Possibly this: month={"=$(=vActMonat)"}.

Try month={$(vActMonat)} or month={'$(vActMonat)'}


btw, if you limit month to one value you'll get only results for that one month. 


talk is cheap, supply exceeds demand
tim_m
Partner - Contributor III
Partner - Contributor III
Author

Thank you for your suggestion. I thought it would work, but unfortunately not.

Can you explain me more detailed abut your btw... Do you mean I should deleate the month={"=$(=vActMonat)"} part?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I'm pretty sure it won't do anything useful now. What do you expect it to do?


talk is cheap, supply exceeds demand
Anonymous
Not applicable

maybe try this...


rangesum(above( sum({<year={">=$(=$(vActJahr)-1) <=$(=$(vActJahr))"},month={"=$(=vActMonat)"}>}Sales),0,rowno()))