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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
yassine1992
Contributor II
Contributor II

Cumulative count until YEAR-1 (Previous Year)

Hello

In Fact, there is a solution in the blog for cumulative count per months :

Max(Aggr(RangeSum(Above(Count({<Active_Month, Active_Date>}DISTINCT AccID), 0, RowNo())) * Avg(1), Active_Month))

I would like to ask you if i can use this measure by years and i want to apply it  until Year-1, it means that i would count all ROWS without the last Year. I wish you can help me :).

thank you in advance

2 Replies
sgagliardi
Partner - Contributor III
Partner - Contributor III

Hi Yassine,

Perhaps something involving the AddYears expression, with -1, like:

Max(Aggr(RangeSum(Above(Count(AddYears({<Active_Month, Active_Date>},-1)DISTINCT AccID), 0, RowNo())) * Avg(1), Active_Month))

Sue_Macaluso
Former Employee
Former Employee

Which product is this for QlikView or Sense? Id like to move it into the correct product forum.
Did you find a solution to your question? Mark the solution as accepted : and if you found it useful, press the like button!