Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Data Manipulation on monthly basis

Polite123
8 - Asteroid

Hi Team,

 

I receive one input file on monthly basis which is used as input to my workflow.

For eg-- Suppose current month is March, I have data for Jan and Feb in input file. If column B is 0 then column C should be 0 in case of Jan and Feb month. But for March which is current month in this example,it is average values of Jan and Feb month even if column B is 0 as shown in below table.

 

So in short for current month if column B is 0 then also I should have values in column C.

The process continues for all months this way.

Can anyone please help in this case?

 

ABC
1-Jan13
2-Jan24
3-Jan00
1-Feb34
2-Feb00
3-Feb56
1-Mar03.5
2-Mar02
3-Mar03

 

Thanks in advance:)

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@Polite123 
Perhaps it will better if you can give two larger datasets for sample intput and output?

Not sure why the column B for March has to be zero, while I understand the C column is average of Jan and Feb for conreponsding date,

Polite123
8 - Asteroid

Hi,

 

Column B is filled only for previous months and not for current one.

Column is averge as you understood correctly

 

below is data set

 

ABC
January-1456181
January-2003
January-32813
January-2890
January-2352318
January-42055
January-57496
January-27260
January-45058
January-1176154
January-2520368
January-1688244
January-1008233
January-2856350
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
January-00
February-2082233
February-54191
February-10266
February-11677
February-122143
February-170100
February-7477
February-12660
February-813224
February-286115
February-9869
February-21657
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
February-00
March-035
March-035
March-040
March-024
March-0183
March-021
March-0185
March-079
March-057
March-0102
March-0100
March-0160
March-066
March-012
March-041
March-049
March-059
March-0139
March-044
March-06
March-055
March-043
March-0241
March-035
March-022
March-069
March-0100
March-079
March-034
March-045
March-072
March-0135
March-035
March-040
March-0105
March-037
March-077
March-0325
March-063
March-0296
March-084
March-0154
March-083
March-093
March-034
March-082
March-021
March-040
March-020
March-011
March-063
March-056
March-098
March-068
March-059
March-0105
March-00
March-00
March-00
March-056
March-033
March-062
March-0114
March-0214
March-0171
March-0361
March-0245
March-0218
March-0353
March-020
March-0142
March-0291
March-0320
March-0242
March-021
March-049
March-063
March-036
March-063
March-00
March-0277
March-0142
March-096
March-0163
March-042
March-099
March-0112
March-067
March-0

57

 

 

 

Thanks:)

Labels