I am working on dynamically changing titles in PowerBI. I have Treemap which displays the population of 6 US states - 2 states from the east (NY, MA) and 3 from the west (CA, OR, WA).
The treemap looks like this -
A user can choose multiple states from a treemap by pressing ctrl and clicking on the square that represents the state. When the user selects both the eastern states, I want the title to say "population in the east states" and similarly for the west too. Can this be done using DAX?
My title requirements -
- If selected states are MA && NY then display "Population in the East States" as the title.
- If selected states are CA && OR && WA then display "Population in the West States" as the title.
- If only 1 state is selected then display the name of the state in the title.
I could do 3. Can someone please help me with 1 and 2?
