Use Row Level Security filters. If a data source has row-level permissions, those permissions also apply to Ask Data, which won’t recognize secure values or make related statistical recommendations. See Restrict Access at the Data Row Level for more information.
Give the end user a Viewer role. Viewer will not be allowed to view the Ask Data feature but still view workbooks associated with the data source. See Set Users’ Site Roles for more information.
This is expected behavior. Tableau Server/Online will expose calculations within the Ask Data feature, regardless if the calculation is using a hidden field.
Thank you for providing your feedback on the effectiveness of the article.