Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Removing Null from multiple columns

ksarker
7 - Meteor

Hello, 

i am working with multiple Quarters YTD data. how can i remove line C and E as there are no $$. Also, how can i convert 0 to Null to be consistent with Quarters with Null

Business Q1Q2Q3Q4

A

20-15Null10
B12Null-2050
CNullNull0Null
D-501040Null
ENullNullNull0
5 REPLIES 5
Luke_C
17 - Castor

Hi @ksarker 

 

Here's one way:

  1. Multi-field to update 0 to null
  2. Transpose quarter info
  3. Summarize tool to count records per business and null records
  4. Compare record count to null record count and filter out businesses where all records are null
  5. Join back to remove data

Luke_C_0-1658248615106.png

 

 

IraWatt
17 - Castor
17 - Castor

Hey @ksarker,

One way of doing this is with a multi field formula like this:

IraWatt_0-1658248662641.png

That formula will replace all 0's with NULL. 

Then a Filter tool can get rid of the NULL rows:

IraWatt_1-1658248703694.png

Any questions or issues please ask :)
HTH!
Ira

 

 

DylanDowrick
8 - Asteroid

Here is an updated macro from the data cleanse tool which will automatically filter out Null/Zero Rows!

DylanDowrick_0-1658248858149.png

 

ksarker
7 - Meteor

Awesome !!!!!!. these steps work perfectly. thanks for your help.  

IraWatt
17 - Castor
17 - Castor

Great to hear @ksarker 😄

Labels