Hide column of looker reports during download in look

WDuan
New Member

We need to hide some values from a column. What we are doing now is to use table calculation to create a new column and apply if (value < threshold, null, value). However, looker has the “As displayed in the data table” option for user to download the data and this will reveal the original column. It has been 3 years now since this request was first raised(

https://community.looker.com/dashboards-looks-7/hide-columns-of-looker-reports-during-download-in-lo...

). Is there is any update for this? Can we disable the “As displayed in the data table” option?

e516abfa-80a2-4075-90c7-900a20d29625.png
0 4 1,291
4 REPLIES 4

Hi @WDuan 

Is there any reason you can’t use the “With visualizations options applied”?

My understanding is that the data table option will always show rows hidden in the visualization because they are only being hidden in the visualization.  If the visualization format is not conducive to pulling that data, you might be able to switch the display to “Legacy Table” and then it displays much like the data table below.

Hope this helps!

WDuan
New Member

Hi @minerkt 

Thank you for your response. Our intention is to hide some values in a column from the end user and that’s the reason why we created a calculated column and use the if condition to hide those values. Looker provides the “As displayed in the data table”, which allows the user to download the entire table and this ruined our intention above. Is there a way to disable this option so that the user can ONLY download data with visualizations options applied?

Thanks!

Hi @WDuan 

That all makes total sense.

I have no knowledge of a way to disable a download option or anything like that.

If I were in your shoes and wanted to have a calculated column while not allowing the user to see a source of that calculation, I would make a new measure on the view file that performs those calculations.  That way, you should still have the results and functionality of calculations, but it would be hidden to the user.

Let me know if that helps or need more information on that.

WDuan
New Member

Hi @minerkt 

Thanks for your advice! We have also tried using HTML in measure where we created conditions like the below:

measure: formatted_count {
type: count
html:
{% if value < 10 %}null{% else %}value{% endif %} ;;
}

this will hide those values meet the condition from the Tile but the end user will see all as soon as they download the dataset. So the problem still exist.

Regarding creating a new measure that performs those calculation. The challenge we have is that we need the condition to be applied post calculation not prior to calculation. Meaning the condition is to be applied on the measure itself not the field/column that the measure is created on hence we can’t bring in any filter condition into this measure.

The workaround we have now is to create a measure and then create a filter on that measure, which is not ideal because it will filter out the entire row in a table as long as the value in a field meets the condition. The intention is to hide the value in a field not the entire row where that field is in.

Top Labels in this Space
Top Solution Authors