Alteryx Designer Desktop Discussions

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

count if

pangersandmash
8 - Asteroid

Hello,

 

I am trying to replicate an excel count if formula. The difference with this is I want to count all items down a list, but nothing above. See below attachment for illustration

pangersandmash_0-1607608620188.png

pangersandmash_1-1607608650803.png

In this example, the count on 2135658HFA is 3 (in total). but by the second one, the count excludes the one above. so there are only 2 to count. Then on the last it becomes 1, as it excludes the 2 above.

Essentially, i want to allocate a "1" next to the LAST unique concat 2. 

Please help!!!

Thanks

10 REPLIES 10
echuong1
Alteryx Alumni (Retired)

I would use a summarize to get a total count of all values, and then append it to another column. From there, you can use a multi-row formula or running total and formula to find the "rolling count."

 

Are you able to upload a copy of your sample data? I can try to mock a workflow for you. Thanks!

kumaranvr1984
8 - Asteroid

HI

 

 

 

 

 

 

kumaranvr1984
8 - Asteroid

kumaranvr1984_0-1607612417627.pngkumaranvr1984_1-1607612434683.png

Workflow and output screenshots

pangersandmash
8 - Asteroid

Thank you, few questions,

 

what is the formula 'rowno=1'? 

what configuration should the 'tile' tool have?

 

Thanks,

 

pangersandmash
8 - Asteroid

scratch that, i have just seen your workflow attached. Thank you!

pangersandmash
8 - Asteroid

Hi,

 

See attached

pangersandmash
8 - Asteroid

THank you for your help. I want to replicate the countif 2 column in column V

echuong1
Alteryx Alumni (Retired)

See attached - I believe it's what you're looking for. I essentially created a running total and then subtracted the total count of the column. I added the record ID and sort to keep the same order.

 

Hope this helps!

 

 

echuong1_0-1607627801563.png

 

kumaranvr1984
8 - Asteroid

Hi Pangersandmash,

 

I have replicated the same excel formula countif 2 column in column V.

 

My workflow gives you the same expected output.

 

Regards,

Kumaran

Labels