Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
bsbernabe
Creator
Creator

How to get the last transaction base on per month & year

Hello There,

how to get or max month  & year to get the last transaction of Data Field?

sample data:

AccountDataMonthYear
023abcd123Jan2012
456efgd456Jan2012
789asdf123Jan2012
128abue123Jan2012
789asdf123Jan2012
623abcd123Feb2012
456efgd496Feb2012
789asdf123Feb2012
121asdf123Feb2012

 

Best Regards,

Bing

Labels (1)
3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

the easiest way will be to run 

load distinct in the script 

this will remove duplicates across the table  

jonathandienst
Partner - Champion III
Partner - Champion III

Which rows/values in your sample are duplicates?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
bsbernabe
Creator
Creator
Author

Hello There,

Sorry wrong subject what i did, actually what I need is how to get the last transaction Of Data Field base on Month and Year.