Alteryx Designer Desktop Discussions

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

Rank only values in Column A where Column B equals 1

Davemg1982
6 - Meteoroid

Hope the title is clear enough, i want to tank only the values in Column A where Column B equals 1, how can I state this in a multirow formula, thanks ahead!

 

Currently this is my rank formula where I need to add that conditial:

 

IF IsNull([Row-1:pool]) THEN
1
ELSEIF
[Rank] = 1 then [Row-1:rankPool] + 1
ELSE
0
ENDIF

 

Expected Outcome:

 

Column A       column B     Result Rank

99.2               1                        1

99.0               1                        2

85.5               0                      Null

60.0               0                      Null.

60.0               1                       3

60.0               1                       3

50.0               0                      Null

45.0               1                       4

30.0               1                       5

3 REPLIES 3
Sebastian_Chaieb2
8 - Asteroid
8 - Asteroid

Hi @Davemg1982 

It would be beneficial if you could post a sample of the data you are using (structure) and the expected results, as it is not clear to me at the moment :)

 

Davemg1982
6 - Meteoroid

Thanks Sebastian, let me try my best, my computer is very limited on sharing files or uploading data:

 

Column A       column B     Result Rank

99.2               1                        1

99.0               1                        2

85.5               0                      Null

60.0               0                      Null.

60.0               1                       3

60.0               1                       3

50.0               0                      Null

45.0               1                       4

30.0               1                       5

 

It nees to rank the values in column A onlu if In column B equals 1, if not Null. Does this help? Thanks ahead.

AndrewDMerrill
13 - Pulsar

Here's a quick sample that uses the Tile Tool and then a Formula Tool to get rid of extra information:

Screenshot.png

Labels