Alteryx Designer Desktop Discussions

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

Delete empty rows from excel output

Ardra
5 - Atom

Hi,

 

I have a workflow that writes result to a formatted excel sheet. Now there is a requirement to delete empty rows from the output. How can I achieve that?

4 REPLIES 4
Felipe_Ribeir0
16 - Nebula

Hi @Ardra 

 

If you want to remove null/empty rows from your dataset before writting it to excel, one way of doing this is using the filter tool with this formula. Replace the ColumnA of the formula by the column of your dataset that you want to use as reference to remove nulls/empty rows and write to excel after it and it will work.

 

!IsNull([ColumnA]) AND !IsEmpty([ColumnA])

 

Felipe_Ribeir0_2-1670854501192.png

 

 

 

damalraj22
Alteryx
Alteryx

Hi, 

 

You can use the Data Cleansing tool to do this pretty easily. Just select remove null rows and you should be set. 

 

damalraj22_0-1670854510981.png

 

DavidSkaife
13 - Pulsar

Hi @Ardra 

 

Note that IsEmpty performs the same check as IsNull, alongside checking for empty fields, so you could use just IsEmpty.

 

DavidSkaife_0-1670854519223.png

PanPP
Alteryx Alumni (Retired)

Hi @Ardra 

 

You can utilize the following expressions.

 

IsNull([ColumnName])  --> Will remove null values

IsEmpty([ColumnName]) --> will remove empty values

 

Hope this helps.

 

Labels