Start Free Trial

Alteryx Designer Desktop Discussions

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

Restructure Logic for clients with date

julianhoetzel
8 - Asteroid

Hi guys, 

 

I need help regarding the following problem: 

 

 

Client_NumberDateFinance Amount
12021-01-01100
22021-01-01200
32021-01-01300
42021-01-01400
12021-01-02100
32021-01-02300
42021-01-02400
12021-01-03100
32021-01-03300
42021-01-03400
52021-01-03500

 

Output should look like the following

 

So it should not include the ones that are added later with a "0" amount like client 5, but should null the amount of those that were in the table before like client 2

Client_NumberDateFinance Amount
12021-01-01100
22021-01-01200
32021-01-01300
42021-01-01400
12021-01-02100
22021-01-020
32021-01-02300
42021-01-02400
12021-01-03100
22021-01-030
32021-01-03300
42021-01-03400
52021-01-03500

 

Cheers

Julian

11 REPLIES 11
Maskell_Rascal
13 - Pulsar

@julianhoetzel 

 

Ok, I think I have a solution, but it will require an Advanced Join macro. 

Maskell_Rascal_0-1623775640087.png

 

This is similar to @mceleavey's solution, but should allow you to apply this to non-sequential client numbers. 

 

Take a look and let me know if this solves your issue. 

 

Cheers!

Phil

 

Maskell_Rascal
13 - Pulsar

Here is an example of an output where the client IDs are not numbers. 

Maskell_Rascal_1-1623775911141.png

 

Labels
Top Solution Authors