# I need to know the number of total columns and the number of empty columns per csv in a folder with many csv

**URL:** <https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214>\
**Category:** KNIME Analytics Platform\
**Tags:** database\
**Created:** [January 16, 2026, 8:06am UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214 "2026-01-16T08:06:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![B074534](https://forum-cdn.knime.com/user_avatar/forum.knime.com/b074534/32/28661_2.png) [@B074534](https://forum.knime.com/u/B074534)\
**Post date:** [January 16, 2026, 8:06am UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/1 "2026-01-16T08:06:44Z")

</div>

I am reading multiple CSV’s from a folder (67 in total), I now need to count the number of columns in each CSV and the number of empty columns. Some columns are common, some others are specific to each CSV. Has someone done somethinG similar?

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/d/9df917263d4ea3bdf0ca0adc5d14a73699455280.png)

I cannot find a similar workflow…

---

<div class="post-metadata">

**Author:** ![HansS](https://forum-cdn.knime.com/user_avatar/forum.knime.com/hanss/32/6979_2.png) [@HansS](https://forum.knime.com/u/HansS)\
**Post date:** [January 16, 2026, 8:20am UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/2 "2026-01-16T08:20:23Z")

</div>

Hi @B074534

It depends what your definition is of an empty column. But if emtpy = missing you can use the Missing Value Column Filter to split the columns in your dataset, and move from there.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/1/e1f24e9113e39f5b3ac414b4d106fb3ae6f58a8d.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/8/1/81155915d2d96ce0d2a27a8c6390b0e8d3d543ba.png)

gr. Hans

---

<div class="post-metadata">

**Author:** ![ActionAndi](https://forum-cdn.knime.com/user_avatar/forum.knime.com/actionandi/32/76198_2.png) [@ActionAndi](https://forum.knime.com/u/ActionAndi)\
**Post date:** [January 16, 2026, 8:21am UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/3 "2026-01-16T08:21:07Z")

</div>

Hi,  
there is a “Extract Table Dimension” Node to get the table dimensions (#rows and #columns)

With the “Missing Value Column Filter” you can remove all empty columns

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/5/157af919b58f84f78d27ed3c48c36c7e4799561b.png)

---

<div class="post-metadata">

**Author:** ![B074534](https://forum-cdn.knime.com/user_avatar/forum.knime.com/b074534/32/28661_2.png) [@B074534](https://forum.knime.com/u/B074534)\
**Post date:** [February 2, 2026, 1:29pm UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/4 "2026-02-02T13:29:33Z")

</div>

Thank you @ActionAndi, your suggestion to use “Missign Value Column filter” and “Extract Table Dimension” nodes has helped me to build this workflow:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/8/6/8692191d35248bc2c1a7740189f89f6714ece656.png)  
As you can see, it was useful to quickly check which CSV files had empty columns (or columns without values) now I need to do get the names of those columns as per the example of a single file below:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/4/2413cec2610fbf18b2ed5c5e4c62c9e1f860f3e0.png)

but the problem I am having is that the “logic” of my workflow only works with files that have empty columns, if there is a file which has got all columns populated, then it does not work because the first “join” operation was bringing the empty column names via INNER join ON RowId. I am finding difficult implementing a “Case Switch Start” and “Case Switch End” nodes to overcome this situation, this is where I am stuck:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/b/9bcb6a4a1e9f15ea8c39035f579c214f08a9c3e5.png)

is there another way? Can you help me to crack this one please?

---

<div class="post-metadata">

**Author:** ![fe145f9fb2a1f6b](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/f475e1/32.png) [@fe145f9fb2a1f6b](https://forum.knime.com/u/fe145f9fb2a1f6b)\
**Post date:** [February 2, 2026, 2:00pm UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/5 "2026-02-02T14:00:44Z")

</div>

if you need only the names of the columns that are filled with missing values, you can start from the hints already given

→ table spec, and Empty Column Filter followed by table Spec.

Then, you can just use a reference row splitter.

Alternatively, have a look at the Reference Column Splitter

lastly, there is an Empty Table Switch node, which you can make use of on the list of columns in case they are empty.  
Overall tho, it makes sense to handle the case (of all rows being filled) properly.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 9, 2026, 2:01pm UTC](https://forum.knime.com/t/i-need-to-know-the-number-of-total-columns-and-the-number-of-empty-columns-per-csv-in-a-folder-with-many-csv/91214/6 "2026-02-09T14:01:10Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
