Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ValentinDes
Partner - Contributor
Partner - Contributor

Exclude empty columns from a table

Hi guys,

I have a table with a lot of columns that are completely empty, i'd like to exclude them, it's pretty easy when we talk about rows but here i really don't know, do you have an idea ?

Labels (2)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

You may create a for-loop over all fields of a table per nooffields() to get the fieldname() and within it an if-loop check per fieldvaluecount() if there is any content and if not to drop the field.

A better approach as the above may be not load the tables with a field-wildcard else to define the wanted ones explicitly.

View solution in original post

1 Reply
marcus_sommer
MVP
MVP

You may create a for-loop over all fields of a table per nooffields() to get the fieldname() and within it an if-loop check per fieldvaluecount() if there is any content and if not to drop the field.

A better approach as the above may be not load the tables with a field-wildcard else to define the wanted ones explicitly.