It would be fortuitous that you put this feature in to 2.3.0, as I had a use case for it. I tossed on 2.3.0 early tomorrow and started trying to work with this, but the columns are not hidden when marked. I thought this might be related to the issue with the initial release I saw Adam mention in another thread so I downloaded fresh 2.3.0 files this morning and same thing.
Oddity I noticed in VSCode when working with this, wasn’t sure if this might be a clue to the issue itself. The -Hidden parameter highlights blue
I pulled your example into a test dashboard and it looks to work fine. I don’t see how what i’ve written out is different than yours. Data source is the only thing that is differnt, mine comes from a sql query
Thought I would bring more info into this in hopes it might help Adam.
After working on this in my local dev i brought the same code into my production like lab environment to continue working out other stuff. I upgraded the lab to 2.3.1 to see how the -hidden would behave. And it worked!
The only real difference I can see in my code between these environments is that I’m running the page as a single dashboard within localdev, not even putting them within new-udpage. In my lab, the page is it’s own ps1 within new-udpage within a larger multi-page dashboard.