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: 
default_the_pig
Partner - Contributor II
Partner - Contributor II

Getting Max date (YYYYMM format) for each account number in Qlik on front end

Hello! Currently, we have a dashboard that displays account information. However, it is bringing back dupes. We have a request from the stakeholder to get rid of the dupes. Basically, we want to keep the latest record based on time month key (YYYYMM format) in this case for each account number. It is possible that the account numbers could have different latest time month keys. 

Is it possible to do this on the front end as a measure or a dimension and use that as a filter? Basically filter out the dupes on the front end. If so, how? 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

If you need to use it as a filter I would suggest you create a new field in your load script

 

Left join(TableA)

Load Accountnumber,max(DateField) as maxdate

Resident TableA

Group by Accountnumber;

 

 

On the front end you can try below 

Aggr(Max(DateField),AccountNumber)

 

 

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

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

If you need to use it as a filter I would suggest you create a new field in your load script

 

Left join(TableA)

Load Accountnumber,max(DateField) as maxdate

Resident TableA

Group by Accountnumber;

 

 

On the front end you can try below 

Aggr(Max(DateField),AccountNumber)

 

 

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