Free Trial

Alteryx Designer Desktop Discussions

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

replacing the repeating value with zero

Neffri
8 - Asteroid

Hi All,

can you tell me how to convert repeated values for the same ID to zero?

I thought maybe the Multi-Row formula, but then do I need to create to each column separate calculation?

 

Customer NumberCurrent AmountAmount DueAging Amount 1-30Aging Amount 31-60Aging Amount 61-90Disputes Amount
112003001001505016
112003001001505040
112003001001505050
240000500030020017
240000500030020080
240000500030020090
2400005000300200135
2400005000300200172
2400005000300200208
2400005000300200245
3500015070305078
3500015070305043
350001507030508
3500015070305067

 

The result which I want to achieve is in the attachment.

Thank you for help.

7 REPLIES 7
binuacs
21 - Polaris

@Neffri one way of doing this with the transpose tool

image.png

Qiu
21 - Polaris
21 - Polaris

@Neffri 
I use the similar approach with @binuacs but adding some logic to return the processed data to its orginal field name and order.
So it can be dynamic and still work even the columns are increasing or decreasing.

 

0729-Neffri.png

flying008
15 - Aurora

Hi, @Neffri 

 

Another way like @Qiu .

 

录制_2024_07_29_09_56_58_468.gif

Neffri
8 - Asteroid

@Qiu Thank you for your solution I have much more column so I hope it will work :)

Neffri
8 - Asteroid

@Qiu Can I ask you about the opinion if I can use the workflow for such data?

I tried to adjust the workflow but I have some problem.

 

 

Qiu
21 - Polaris
21 - Polaris

@Neffri 
The sample you gave at first only contains one non-numeric column, which is not the case for 2nd sample data.
To be more dynamic, I use Auto Field and Dynamic Select Tool to separate the Numeric and Non-Numeric Columns, then join back together after wards.
One thing is that the column order is now changed.

0729-Neffri-r1.png

Neffri
8 - Asteroid

@Qiu Thank you so much <3

Labels
Top Solution Authors