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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Set analysis. Max date

Hello,

I am stuck here with a quite simple task.

I have data like:

Screenshot_1.jpg

Expected output:

2015-01     2

2015-02     4

2015-03     11

Sum of Data in the max date per Year month. This have to be dynamic as here will appear other Calendar fields like [Year week], [Year quarter].

See the attachment.

Thank you for helping me out.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=FirstSortedValue(Distinct Aggr(SUM(Data),Date),-Date)

View solution in original post

2 Replies
MK_QSL
MVP
MVP

=FirstSortedValue(Distinct Aggr(SUM(Data),Date),-Date)

rahulpawarb
Specialist III
Specialist III

Hello Mindaugas,

You can make use of Resident Load as below:

LOAD [Year month],

MAX(Data) AS Data

Resident BaseTable

Group By  [Year month];

Regards!

Rahul