Thank you for your answer. The data will be loaded directly to Qlik from the server (where are stored the data). Do the code will work from this configuration?
Also, sometimes the hour of the date can be different, for example :
1, 1B, 23/03/2017 12:12, 344
3, 1B, 23/03/2017 18:00, 344
How can I keep the date the most recent (put 0 for the oldest date and 1 to the most recent), knowing this variable is a part of the key ?