Free Trial

Foro

RESUELTAS

Import one excel file and select multiple sheets automatically

PedroCalderon
Átomo

Hello all,

 

I would like to know if there is a solution to this problem:

 

I have the same input file for all projects I work on. This file has multiple sheets that have different structures but always have the same sheet name. Therefore, the only name that ever changes across different projects is the Excel File name.

 

So far, I have been adding a new input tool for every sheet I wanted to read and use in my flow, but since there are more than 7 sheets in the input, I would like to know how to set up the tools to 1) input the file only once and 2) set up the flow to read the sheet necessary at each stage automatically.

 

Thanks to any repliers, it is very much appreaciated!!

P.

6 RESPUESTAS 6
FláviaB
Alteryx Community Team
Alteryx Community Team

Hola @PedroCalderon! Como estamos en la comunidad de habla hispana, siéntase libre de compartir tus preguntas en español. 😉

Flávia Brancato
grchavarri
Bólido

Hola @PedroCalderon , 

 

Desafortunadamente Alteryx no tiene una solución exacta para eso, pero no te desanimes, hay varios "workarounds" con los que podemos hacer lo mismo que buscas. Es algo mas complicado pero a ver si esto soluciona tu problema. 

 

El input tool de alteryx tiene una función para poder obtener las hojas que forman parte de tu excel. Se haría de la siguiente manera.

grchavarri_0-1646820926134.png

Una vez tienes la lista de hojas en esa configuracion, en la propia configuracion de la herramienta, tienes que outputear el full path del archivo como en esta imagen. 

grchavarri_2-1646821004123.png

Una vez tienes esto, seria tan simple como añadir esta formula tool con un replace de esta forma:

grchavarri_3-1646821044066.png

y filtrando por la hoja que quieras con una formula de filter y poniendole un dynamic input detras, podras abrir las 6 hojas solo trayendo un archivo como en la imagen que te adjunto. 

grchavarri_4-1646821185635.png

 

Cualquier duda estamos a tu disposicion, espero te ayude. 

 

Por otra parte, te animo a unirte al próximo Madrid User group que será el próximo 16 de Marzo a las 19h. Puedes encontrar mas información en la comunidad o en linkedin. 

 

Saludos,

 

PedroCalderon
Átomo

@grchavarri , muchas gracias, lo soluciona perfectamente!!

 

Un saludo,

P.

gabrielmier222
Meteoro

Hola, que tal :)

 

I have the same question, pero tengo 52 sheets en mi spreadsheet. Is there a more efficient way to extract the data or is 52 filters my best bet?

Ultimately, I want to combine the data from the 52 sheets into a single export.

 

me puedes ayudar?

saludos de Tejas, USA

fvilelabr
Alteryx
Alteryx

Hi/Hola @gabrielmier222 

 

Please, take a look at this article: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Knowledge-Base/How-To-Import-Multiple-Exce...

 

Creo que te puede ayudar.

Saludos,

Fernando

acerezue
Átomo

Hola a todos, 

Estoy intentando replicar este flujo de trabajo, pero tengo dudas en el último paso. ¿Cómo debo configurar la formula de filter y la dynamic input detras? Gracias por vuestra ayuda de antemano

Etiquetas