In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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
11 - Bolide
11 - Bolide

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.

CoG
14 - Magnetar

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

Screenshot.png

Labels
Top Solution Authors