Lets say the title can have three possible values and the chart will be updated dynamically, first create a table with two values.
then use the dax below.