Here's an example using Superstore. Here's a simple line chart with labels:
Now I'll create a parameter called Show Labels with a boolean (true/false) type.
Now create a calculated field:
// If the user has selected to show labels, show it. Otherwise, show NULL.
IF [Show Labels]=TRUE THEN
Now drag Label over top of the SUM(Sales) pill that currently exists on the label card. It'll look pretty much the same:
But if the user selects "False" in the Show Labels parameter, the labels will disappear.
See attached workbook.
Optional Labels.twbx 1.2 MB