Hidden effects of Hide and Exclude

When you hide or exclude a column, it might appear that you are actually hiding and excluding the column data in the report. This is a misunderstanding that can cause unexpected output data in the columns that remain visible. Hidden and excluded columns simply remove the columns or rows from view. However, the data in the hidden or removed columns is still used in calculations applied to the visible columns.

The data in hidden or excluded columns and rows is still used in report calculations, and can affect the output data shown in other columns.

This topic covers the underlying effects of hiding and excluding columns in Interactive Custom Report Writer (ICRW) reports.

Effects of hiding a column

There are different ways to hide data in a report:

  • Go to Column Properties -> Column Format tab and selecting the Hide checkbox.

  • Use the Custom CSS Style display:none.

Both methods shrink the column to an infinitesimally small width. The hidden column is not visible in the report, and the number of rows has not changed.

To visualize the effect, start with the following table for a customer invoice and payments.

Customer invoice table with transaction dates, types, and payment amounts.

Hiding the Txn Date column from the Column Format tab or the Custom CSS Style display:none, provides the following results. The Txn Date column is no longer visible and the rows remain unchanged.

Example report with the Txn Date column no longer visible because it was hidden. The row values remain unchanged, however.

Without the Txn Date column, it is difficult to know what the different payment amounts represent. Hiding column data can result in ambiguity for interpreting the data.

Recommended best practice: only include fields in a report that are necessary to obtain the desired output.

Effects of excluding a column

Excluding a column results in a different effect than hiding the same column. When you exclude a column, it is removed from the view in a table or pivot table. Excluding the Txn Date column in the example table produces the following result:

Excluded Txn Date column produces a combined transaction amount for all the rows in the report.

Excluding the column combines the data for individual transaction dates. The $80,500 is a sum of the transactions for all the dates in the report.

It is important to remember that the data in an excluded column is still used in report calculations.