Anonymous's avatar
Anonymous
Not applicable
5 years ago
Status:
New

Expression-based (dynamic) titles in slicers do not work

Simple setup:  Two column, two row table:

and a measure:

Measure = if(selectedvalue('Table'[Column1])="A","A is selected",if(selectedvalue('Table'[Column1])="B","B is selected","Multiple Selections"))

Drop a slicer on Column1 into the report.  Drop a card with the result of "Measure."  Drop a column chart with Column1 as axis and Column2 as values.  Then set the column chart's title (using the fx option) to "Measure."  Do the same for the slicer's header title, and even the main title.  Here's the result:

 

"Measure" is evaluating as expected in this situation ("A is selected"), and the column chart's expression-based title is behaving as expected as well.  But neither the slicer's header title nor its main title reflect the same evaluation.  No matter which options in the slicer are selected, the title always remains "Multiple selections". 

2 Comments