Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Max date par mois

Bonjoir,

HELP! Je voudrais selectionner les enregistrements du dernier jour de chaque MoisAnnée dans le script load.

Exemple:

dateenregistrement
01/08/2012text1
06/08/2012text2
01/09/2012

text3

le resultat doit etre :

dateenregistrement
06/08:2012text2
01/09/2012text3

Merci d'avance

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thank you !
but it not working !

this solution work :

http://www.qlikcommunity.com/thread/47479

View solution in original post

28 Replies
anbu1984
Master III
Master III

lOAD FirstSortedValue(date,-date) As date,FirstSortedValue(enregistrement,-date) As enregistrement Group by ((Year(date)&(Month(date)+0)));

Load Date#(date,'DD/MM/YYYY') As date,enregistrement Inline [

date,enregistrement

01/08/2012,text1

06/08/2012,text2

01/09/2012,text3 ];

Anonymous
Not applicable
Author

Excusez moi mais j'ai pas bien saisie votre réponse !!

Not applicable
Author

Salut,

i essayé de résoudre votre problème, trouver la pièce jointe.

Je le Google traduction pour comprendre, je l'espère traduire ainsi.

son conformément au tableau

trouver la pièce jointe

En ce qui concerne

Harshita Gaur

Anonymous
Not applicable
Author


hello harshita gaur

Thanks for your help .

my probleme that:  i have more than one data per MonthYear ( table 1 in my first comment)

and i need to get the last data ( information) linked to the last Day in every MonthYear and not the SUM ( table 2 )

all that in the script load qlikview not in the set analysis or expression or table!

hope that i was clear !

Thanks any way

Not applicable
Author

salut,

trouver la pièce jointe, je hmake les données avec la même situation, appuyez sur Ctrl + E et vérifie le script.

en ce qui concerne

Harshita Gaur

Not applicable
Author

Salut à nouveau,

désolé, je ne comprends pas votre question avant, se il vous plaît vérifier l'attachement

En ce qui concerne

Harshita gaur

anbu1984
Master III
Master III

Did you try my solution? Is it not giving your expected output in script?

robert99
Specialist III
Specialist III

This might work (I'm not sure though or if its what you want)

You could do max date by month

step1

data:

load table but also  include

Monthend (date) as monthend

then step 2

join (data)

load

monthend,

max (date) as maxdateformonth

resident data

group by (monthend);

then

data2

noconcatenate

load

*

resident data

where (maxdateformonth = Date);

drop table data;

Anonymous
Not applicable
Author

@RJ

thanks but is not working !