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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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
binu_acs
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

 

binu_acs
21 - Polaris

@jframe One way of doing this

 

binuacs_0-1654013981236.png

 

 

Labels
Top Solution Authors