Hiding both columns and rows of an Excerpt table
Asked by Kent Thayer:

I have several tables that contain both *private* and *public* information. Currently, for our weekly public meeting, I copy all the tables over to a public page, and remove the private columns, then remove the private rows. What I would like to do is display just the public portions from the original table.

Using **Excerpt table** I got the table to project to the public page. Then wrapped it in **table filter** to hide the private columns. However, I haven't found a way to hide private rows by default. Maybe I'm doing this wrong, but adding another filter only hides the data interactively, which leaves rows visible by default.

Assuming that I want to hide all rows where the column "status" contains "internal". Is there a \[better\] way to do this?


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Kent Thayer](/t5/user/viewprofilepage/user-id/3968576) ,

To hide several rows from other users, you need to create two pages:

1. Public with no restrictions
2. Private with the required view restrictions

Now divide your tables into two parts - with public rows and with private rows. Paste these tables to the corresponding pages.

Then use the Table Excerpt/Table Excerpt Include macros to show your private part on the public page.

To combine the two tables into the big one, use the [Table Transformer macro](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro), the default Merge preset.

As the result, you'll get the following:

* you will see the whole big table on the public page
* other users will see only the public rows. The private rows will be hidden from them automatically. Besides they won't be able to find any confidential data in the HTML code of the page and in the preview of the Table Excerpt macro

And if you need to hide several rows on your own page just for presentation, i.e. temporarily just to share your screen, go to your Table Filter macro where you hide columns and set the dropdown filter for your status column. Then go to the Filtration Tab -\> Select Reversed Filters and choose the required status that you don't want to show. After that don't forget to hide the filtration pane and control buttons.

comments: author: Kent Thayer
body: Hi Katerina,

Thanks for your answer. I can see that as a working alternative. However turning 6 tables into 12 tables and complicate the entry process would not be ideal.

Is there any way, without interaction, to hide rows (settings.hide, where column.status = "internal"). Note, I'm willing to make slight changes to the tables columns or add flags to make it work.


author: Katerina Kovriga {Stiltsoft}
body: The simplest workaround is described in the second part of the answer:

"And if you need to hide several rows on your own page just for presentation, i.e. temporarily just to share your screen, go to your Table Filter macro where you hide columns and set the dropdown filter for your status column. Then go to the Filtration Tab -\> Select Reversed Filters and choose the required status that you don't want to show. After that don't forget to hide the filtration pane and control buttons."

It is based on filtering by your statuses and the Reversed Filters feature (you can see an example [here](https://docs.stiltsoft.com/display/public/TFAC/Table+filtration), go to the **Filtering rows not equal to selected values**section).

After such filtration, hide the filtration pane and control buttons and restrict your page from editing.


author: Kent Thayer
body: Thank you!


Tags: confluence-server

server