Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Running sum maximal agg value

Hi all,

which is the easiest way to get max value of running sum by year, quarter, month and day?

Thanks 🙂

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not sure exactly what you are trying to do, but it looks like you need Advanced Aggregation:

max( aggr( sum(Sales), Year, Quarter,...))

cheers,

Not applicable
Author

Hi Oleg,

I need max but looking at cumulative sum on yearly, quarterly, monthly and daily levels.

For ex.

Posting date Quantity

1.1.2010. 5

2.1.2010. -4

1.2.2010 1

1.4.2010. 9

1.6.2010. -3

When looking at the year, max cumulative value is 11 (5-4+1+9).

When looking at monthly granualtion, max values are jan:5, feb: 5-4+1 = 2, march: 3, apr: 9+3=12

I know I can't have march unless I create a calendar, but how would i get max cumulative values for the periods in which I do have something posted?

Thnx.