Categories
Conditionally hide a column

Is it possible to hide a Column on a table/pivot based on a (filter based) parameter value?
Best Answer
-
Hi,
If you are working in DV, not really… It is a right-click property only so far. There doesn't seem to be a way to dynamically influence that, or set a parameter or a condition on it.
It's maybe worth looking in
if there is already an idea to make this feature "smarter" and up-vote it. If there isn't one, sounds like a good idea to create one.2
Answers
-
You could create a case when formula to check for variable value and show blank ' ' or the actual column but this will show a blank column, its not same as hiding.
Other comments welcome!
0 -
Thanks - yes, the user does not want a blank column. They want the column gone.
0 -
Have you tried using parameters to simply create column selectors. Not exactly what you need but could help, see this video https://youtu.be/QqSrXvFhOmE
Also, here is a more convoluted path to do something similar, not the same but may help for similar cases :
- if you can define your DV datasource with a SQL (a DB or a logical SQL)
- then have some of the SQL query columns defined via Session Variables (OA Server Session vars)
- in the canvas, define parameters to set values to these session variables (see this video https://youtu.be/LSLgmMzYp-E)That way, the end user can further influence the definition of the datasource directly from the canvas. Again, this will not answer your need because changing the definition of the underlying source will likely simply 'break' the viz.
2 -
Added an idea here:
1 -
Thanks, up-voted !
0