Alteryx Designer Desktop Discussions

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

COUNTIFS in Alteryx Designer

RVDL
7 - Meteor

Hi All,

 

I have the following table:

 

IDTYPEVALUE
ID1T1 
ID1T2X1
ID1T3 
ID1T4 
ID2T1 
ID2T2 
ID2T3Y2
ID2T4 
ID3T1X4
ID3T2Z6
ID3T3 
ID3T4 

 

I now want a new field, let's call it COUNT, that for each ID counts how many cells in column VALUE are blank for TYPE is T1 or T2. So I want to end up with a table like below.

 

IDTYPEVALUECOUNT
ID1T1 1
ID1T2X11
ID1T3 1
ID1T4 1
ID2T1 2
ID2T2 2
ID2T3Y22
ID2T4 2
ID3T1X40
ID3T2Z60
ID3T3 0
ID3T4 0

 

How would I do this? Thanks for your help.

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@RVDL 
It is hard to say there is a specific workflow of pattern for CountIf function in Excel but usually it will involve Filter tool as "If" and Summarize tool as "Count".

For your case, we can do as below.

1204-RVDL.png

AndrewDMerrill
13 - Pulsar

We can even simplify even further (at times) with the Formula Tool:

Screenshot.png

Labels