ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Generating row data based on a variable amount of info under it

Cmcguire
メテオロイド

I have a csv file that is formatted like so:

List:Birds, 9
Penguin, 3
Cardinal, 4
Robbin, 2
List:Cats, 2
Tabby, 2
...

 

Everything under the item belong and sum to the list total, until the next list is stated. I'm struggling to convert the data to one row so that it would look like the following:

 

List:Birds, 9, Penguin, 3, Cardinal, 4, Robbin, 2

List:Cats, 2, Tabby, 2

...

 

Am I missing an easy solution to do this?

2件の返信2
AngelosPachis
ネビュラ

Hi @Cmcguire ,

 

You can flag the different groups with a multi-row formula and then use a summarize tool to concatenate all relevant strings together

 

AngelosPachis_0-1610484299357.png

 

Hope that helps,

 

Angelos

Cmcguire
メテオロイド

This is exactly what I'm looking for! Thank you!

ラベル
トップのソリューション投稿者