Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
dans le script je voudrais dans le champ prévision si il y a un trou que le script aille chercher à une date précédente toujours dans le champ prévision, le chiffre présent.
concrètement on m'a fait un fichier Excel alimenté quand les prévisions changent par catégorie et on me demande de reprendre la prévision précédente quand c'est vide.
merci
You could use something like
Load
Date,
If(Len(Trim(prévision))>0, prévision, Peek(prévision)) as prévision
Resident Data
Order By Date;
If you have a second field like catégorie, then you can test on this field also, so that it only uses the previous value if it is within the same catégorie:
Load
Date,
If(Len(Trim(prévision))=0 and catégorie=Peek(catégorie), Peek(prévision), prévision) as prévision
Resident Data
Order By catégorie, Date;
Bonjour Fabrice,
Regarde cette discussion, ca peut peut etre t'interesser
Bonne journee