We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Countif function

Jenina
8 - Asteroid

Hello All,

 

I am trying to do a simple countif in Alteryx but it looks like it's not straightforward. 

I just wanted to count the currencies per Account unit. Please see below sample. Thanks for the help.

 

Source:

Account unitCurrency
UNIT 113EUR
UNIT 113EUR
UNIT 113EUR
UNIT 113USD
UNIT 113USD
UNIT 112EUR
UNIT 112EUR
UNIT 112USD
UNIT 112USD
UNIT 112USD

 

Output:

Row LabelsA AccountB AccountGrand TotalItem Count
EUR-165522.27192850.6727328.4 
unit 11331652.24 31652.243
unit 112-65.64-0.01-65.652
USD-165522.27192850.6727328.4 
unit 11331652.24 31652.242
unit 112-65.64-0.01-65.653
14 REPLIES 14
geraldo
13 - Pulsar

@Jenina 

 

An example workflow of how to get the result you want

Jenina
8 - Asteroid

@jdminton  this works! and yes it's complicated. Thanks!

Jenina
8 - Asteroid

@geraldo this is amazing, thank you!

jdminton
13 - Pulsar

I’m glad it works for you. You can do something similar with reporting tools but I find those less useful if you’re going to use the same data downstream.

Jenina
8 - Asteroid

@geraldo going back to this, If I want to add an Inventory column, where should I place in the 3 summarize tools that will still result to the same output we have.

Labels
Top Solution Authors