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: 
Mccullum
Contributor II
Contributor II

Next Month Quantity

Create a Qlik Cloud measure that displays the next month’s Sum(QTY) for each current MonthYear row.
It must respect all other dashboard filters and selections.
The solution should not rely on sort order or functions like Above/Previous.
Values must update dynamically when dimensions or filters change.

Labels (4)
1 Solution

Accepted Solutions
Mccullum
Contributor II
Contributor II
Author

Aggr(Above(Sum(QTY),1),(Month _Year,(Numeric, DESCENDING))).

i used this expression this is working as expected.

 

View solution in original post

5 Replies
robert_mika
Master III
Master III

Maybe:

Sum({<MonthYear = {"=Date(MonthStart(AddMonths(MonthStart(MonthYear), 1)),

'MMM YYYY')"}>}QTY)

Mccullum
Contributor II
Contributor II
Author

In a table with many rows (Jan-23 → Sep-25), this will likely evaluate once globally, not row-by-row. So all rows could get the same value or null

Chanty4u
MVP
MVP

Try this 

Aggr(

    Sum(

        {<

            MonthYear = {"=$(Date(AddMonths(MonthStart(Only(MonthYear)),1),'MMM-YYYY'))"}

        >} QTY

    ),

    Month

Year

)

Mccullum
Contributor II
Contributor II
Author

I tried this method this is also didn't work.

Mccullum
Contributor II
Contributor II
Author

Aggr(Above(Sum(QTY),1),(Month _Year,(Numeric, DESCENDING))).

i used this expression this is working as expected.