Dynamically identify the number of columns to parse | Data wrangling | Alteryx Tips and Tricks

preview_player
Показать описание
Do you need to split your data into multiple columns but aren’t sure how many columns to split it into? The below workflow helps you determine this dynamically.

1. Add a RecordID to be able to identify rows of data later
2. Split your data into rows (instead of columns)
3. Use the Tile Tool, and select RecordID as the unique field to assign “1” for the first column for each record, “2” for the second, etc
4. Use the Cross Tab Tool, and group by RecordID to uniquely identify each record, Tile_SequenceNum is the header and the values are the data
5. Add a Sort Tool to sort the RecordID values in ascending order
5. Use the dynamic rename to replace the number from the Tile_SequenceNum with your header

Рекомендации по теме
Комментарии
Автор

How can I count the columns in each lines?

I just want to check if each line has the same columns, and get a result saying ok or not ok on line x or y

vicenzovendetta