We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Comment ouvrir deux fichiers plats

Szabo
5 - Atom

Je désire ouvrir deux fichiers dans un workflow pour comparer de la donnée dans Alteryx Desgner.

Le nom des deux fichiers est identique à l'exception du numéro de semaine en fin de fichier(historisation de la donnée), exemple toto-semaine31.xlsx et toto-semaine 30.xlsx.

Le besoin est d'ouvrir le fichier de la semaine en cours par exemple (cela je sais le faire), puis le fichier de la semaine précédente de manière dynamique, soit toujours le S-1, et là je coince. 

Les deux fichiers sont dans le même répertoire.

Je vous remercie d'avance pour votre précieuse collaboration 😁

Szabo_0-1753967692287.png

 

2 REPLIES 2
mceleavey
17 - Castor
17 - Castor

Hi @Szabo ,

 

to dynamically load the two files use the directory tool to pull in the metadata of the files within the directory. Then either sort by the creation date, as I have in the attached example, or parse the date from the name and sort by that.

In the attached example I sorted, then used the Select Records tool to select the first and second records:

 

workflow.jpg

This will then allow you to compare both streams depending on your logic.

I hope this helps,

 

M.



Bulien

Szabo
5 - Atom

Hi,

Thank's so much, it's perfect. 

My Workfolw is fully operationnal 👍

Labels
Top Solution Authors