Skip to main content

Dynamic Title change for Multi select values on visual

Power Bi allows you to change the visual title Dynamically on the basis of slicer selection values.

So, Let’s start with an example,  download the sample Dataset from below link:-

SuperStoreUS-2015.xlxs

After that create two visuals : 1 – Slicer with Region, 2 – Clustered column chart, Region wise Sales


Step 1: Create a measure for dynamic title change on visual.

TitleTxt =

VAR GetValues= CONCATENATEX(

VALUES(Orders[Region]), Orders[Region], ", ")

RETURN

"Selected Region [ " & GetValues & " ]"

DAX measure for Dynamic Title

Measure Description:

  • Var : Store the values
  • Values : returns a one column table that contains the distinct values from the specified column.
  • Concatenatex : concatenates the result of an expression evaluated for each row in a table using the specified delimiter.

Step 2: Select visual > go to format bar > turned on Title > click to fx icon.

Step 3: Now select title measure.


Step 4 : Now select values from region slicer & see the chart title change behavior.

Dynamic Title Change 1

Dynamic Title Change 2

As you see, Title changing dynamically on selection of Region values.

Hope you enjoyed the post. Your valuable feedback, question, or comments about this post are always welcome

Comments

Popular posts from this blog

ALL DAX function

As it’s name suggests, Returns all the rows in a table, or all the values in a column.  ALL function removes the applied filters from the filter context. Its comes under Filter function DAX category.

LOOKUPVALUE DAX Function

Returns the value for the row that meets all criteria specified by search conditions. The function can apply one or more search conditions. Its comes under Filter function DAX category.