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

Grouping data in a bar chart using the max date of every month

Hello All, 
I have a date field in the format 'YYYY-MM-DD' 'TransDate' and a measure amount. 
I wish to create a bar chart, with each bar representing the Sum(Amount) for the max date in each month. Note: Max date means not the month end date. It is the max date for which the data exists. 

How can this be achieved?

Thanks 
Sayali

Labels (1)
1 Reply
vinieme12
Champion III
Champion III

as below

 

=sum(aggr(if(TransDate=Max(total <MonthYear> TransDate),Sales),MonthYear,TransDate))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.