Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Substituir valores nas linhas por valores dos cabeçalhos

vcorrei5
7 - Meteor

Boa tarde,

 

Gostaria de substituir os valores numéricos nas linhas  das colunas (ECM1 até E9AA), pelo valor do cabeçalho (header das colunas - valores: ECM1 até E9AA).

 

Obs: Valores em branco, continuarão em branco.

 

 

At.

 

Victor

6 REPLIES 6
CharlieS
17 - Castor
17 - Castor

Olá @vcorrei5 

 

Farei o possível para usar o Google Tradutor e ajudar. A primeira coisa que eu queria compartilhar com você é que existe uma comunidade Alteryx em português. Aqui está o link:

https://community.alteryx.com/t5/Forum-Portugues/bd-p/discussions-pt-br 

 

Eu olhei para o fluxo de trabalho anexado e, infelizmente, não consigo executá-lo porque o arquivo do Excel não estava anexado. Você pode empacotar o arquivo com seu fluxo de trabalho se usar Opções> Exportar fluxo de trabalho para gravar um arquivo .yxzp ou apenas anexá-lo separadamente.

 

vcorrei5
7 - Meteor

It follws the excel file attached.

 

Thanks for the portuguese community link

CharlieS
17 - Castor
17 - Castor

Thanks for sharing that file and switching to English. 

 

There's a short version that works in this particular scenario, but I'll caution that a more systematic approach could be used for similar scenarios. Both versions use the Dynamic Rename tool and can be found in the attached workflow. Check it out and let me know if this helps. 

vcorrei5
7 - Meteor

I try to utilize but it was not worked. I am trying to give a sample what I want:

 

Current:

 

vcorrei5_0-1588223015762.png

 

Future:

vcorrei5_1-1588223172405.png

 

Do you know if there is a source or guide that translates Alteryx function codes? As !, *, ^,... 

 

 

 

 

CharlieS
17 - Castor
17 - Castor

Ah! I misunderstood and replaced the field names, not the actual values. I've attached another workflow that shows some methods to achieve what you describe. 

 

There are a few key processes:

- Use a Record ID tool at the beginning to keep everything ordered and organized throughout the process.

- The actual rename occurs in Formula (43). It's a single, simple formula with some transformation before and after. 

- Union based on position at the end since fields names aren't the strongest organizer here. 

 

Check it out and let me know if you have any questions. 

vcorrei5
7 - Meteor

Thanks!! You solved the issue!!

Labels