Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Tooltips that Respond Dynamically when Using the Drill-down Option on a Clustered Bar Chart

Hey,
 
If I have Town and Country like follows:
 
TownCountry
ManchesterEngland
LeedsEngland
LondonEngland
TorontoCanada
VancouverCanada
MontrealCanada

 

I have plotted a a clustured bar chart with Country and Distribution with drilldown ability so you can click England and see the distribution breakdown in each town on my Dashboard.

I want to create a tooltip whereby if you hover over Manchester it will say Manchester and if you hover over the graph when it is on England it will say England.  This is because I am putting segment relatated info on my tooltip.

 

Since both country and town are on one graph I am struggling to write this in DAX.

 

I had a go but its completely wrong:

Measure = IF(ISFILTERED('Table'[Country]),'Table'[Country],'Tablel'[Town])

 

Can anyone help please?

 

Thanks!

4 Replies