Alteryx Designer Desktop Discussions

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

Count of closed

BRRLL99
11 - Bolide

Hi Team,

 

for the given dataset, im looking to add two new columns CLOSED ABOVE, CLOSED BELOW

if close>open , then i would like to know the count of particular month and year , how many times close>open vice-versa

ex: june-2022 closed above 6 times etc,

 

 

DATEOPENCLOSE
11-07-20221,7411,731
12-07-20221,7381,742
13-07-20221,7371,739
14-07-20221,7641,736
11-08-20221,8631,870
12-08-20221,8961,863
13-08-20221,8951,911
14-08-20221,8861,891
14-04-20221,9811,974
13-04-20221,9701,984
12-04-20221,9571,976
11-04-20221,9491,948

 

expected result   
MonthYearClosed aboveClosed below
june202264
march202238
2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @BRRLL99 

 

You can bring the data in the format you need by extracting the info for month and year from your date field and then creating a new column for whether the close value is above/beyond the open value.

 

AngelosPachis_1-1657627058930.png

 

Then with a summarize tool you can count the number of times for each month and then cross tab

 

 

AngelosPachis_0-1657627043348.png

 

Hope that helps,

Angelos

 

binuacs
20 - Arcturus

@BRRLL99 one way of doing this

binuacs_0-1657627272261.png

 

Labels