Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Percentage of filled rows for n columns

jframe
5 - Atom

I have a dataset with several hundred columns over millions of rows. I'm trying to understand how I can group the data over one column, then get the percentage of filled data for each column in that group, for n columns. For my purposes filled can be either not empty or not null.

 

Below shows a sample input and output with just 3 columns:

 

 

ToGroup  A   B   C
1            10  13
1        9   7   5
1        11  4   9
2                6
2        8   5   2
2        6       1

Group    A     B     C
1        66.7% 100%  100%
2        66.7% 33.3% 100%

 

 

 

4 REPLIES 4
binuacs
21 - Polaris

@jframe How are you calculating the percentage?

jframe
5 - Atom

Hi, [number filled rows in column] / [number of rows in group]

IraWatt
17 - Castor
17 - Castor

Hey @jframe,

Here's one way of doing this:

IraWatt_0-1654013617399.png

 

You don't need the data cleaning tool at the beginning I just added that to clean the data after copying yours.

Any questions or issues please ask :)
HTH!
Ira

 

binuacs
21 - Polaris

@jframe One way of doing this

 

binuacs_0-1654013981236.png

 

 

Labels
Top Solution Authors