Alteryx Designer Desktop Discussions

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

Rows to column

akumar2609
8 - Asteroid

Hi All,

 

Need help in getting the below problem solve. I have below table where Previous day and Current day data are available. Now, my requirement is to know the daily movement on intercompany level. Please note that all the inter company will not be available everyday. 

 

Input data

 

ICProfit CentreCurrencyHedge TraxSalesData
25091111USDNo10008/19/2023
75012222USDYes20008/19/2023
78903333USDYes30008/19/2023
87124444USDYes4008/19/2023
75012222USDNo5008/20/2023
78903333USDYes6508/20/2023
87124444USDNo5008/20/2023
67675555EURYes5508/20/2023

 

My Required Output :-

ICProfit CentreCurrencyHedge TraxSalesDataICProfit CentreCurrencyHedge TraxSalesDataDaily Movement
25091111USDNo10008/19/2023      1000
75012222USDYes20008/19/202375012222USDNo5008/20/20231500
78903333USDYes30008/19/202378903333USDYes6508/20/20232350
87124444USDYes4008/19/202387124444USDNo5008/20/2023-100
      67675555EURYes5508/20/2023-550

 

Thank you in advance.

10 REPLIES 10
FinnCharlton
13 - Pulsar

Hi @akumar2609 , here's how I'd go about this:

Screenshot 2023-08-21 144820.png

Workflow is attached for you tot take a look at, hope it helps!

DhruvTangri
5 - Atom

Hi @akumar2609 , PFA the solutions that can help you with the problem. Only thing I see is for IC 6767 you have given Daily movement as -550. Since last day there are no sales but 550 should also work right here? Since like it is opening on 20th otherwise you might not calculate the movement correctly for next day.

akumar2609
8 - Asteroid

Thank you for the help. 
One more help needed here
I have a date column and I need 'Current day' or 'previous date' text based on the dates in a new column.

 

Input

 

Date
18-Aug-23
18-Aug-23
19-Aug-23
20-Aug-23
20-Aug-23

 

Required Output

DateCurrent or Previous Day
18-Aug-23Other Day
18-Aug-23Other Day
19-Aug-23Previous Day
20-Aug-23Current Day
20-Aug-23Current Day

 

 

akumar2609
8 - Asteroid

Thank you for the help. 
One more help needed here
I have a date column and I need 'Current day' or 'previous date' text based on the dates in a new column.

 

Input

 

Date
18-Aug-23
18-Aug-23
19-Aug-23
20-Aug-23
20-Aug-23

 

Required Output

DateCurrent or Previous Day
18-Aug-23Other Day
18-Aug-23Other Day
19-Aug-23Previous Day
20-Aug-23Current Day
20-Aug-23Current Day
binuacs
20 - Arcturus

@akumar2609 What is the logic to calculate Other Day and Previous Day

akumar2609
8 - Asteroid

What ever the latest date is available should be Marked as "Current date" (in this case 20 Aug is the latest date and will be Marked as Current date). Second latest date should be marked as "Previous day" (in this case 19 Aug) and other then these two, all the dates should be marked as "Other dates" or it can be left blank also.

 

I am only consent with the latest two dates (in this case 20th and 19th Aug). 

FinnCharlton
13 - Pulsar

@akumar2609 , here is how to solve that:

Screenshot 2023-08-21 163812.png

Workflow attached

FinnCharlton
13 - Pulsar

@akumar2609 Didn't quite follow your logic in the last one, use this instead:

Screenshot 2023-08-21 164205.png

akumar2609
8 - Asteroid

Thanks for the quick reply; however I can see one catch here. In case My dates are 

20th Aug

18th Aug

17 Aug and so now..

 

Workflow will produced the following result

20th Aug                - Current Date

18th Aug                - Other Day

17 Aug                   - Other day

 

My requirement here is to have the latest two dates available should be Marked as Current and Previous day.

Labels