cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Tooltips and Strings

Thank you everyone!

 

It works with either ISFILTERED, HASONEFILTER and HASONEVALUE (but not ISINSCOPE).

 

It was my logic that was faulty because town will always line itself and into country but a country only lines into itself. When I had it the other way around it just kept showing me country.

 

Measure=IF(ISFILTERED('Table'[Town]),VALUES('Table'[Town]),VALUES('Table'[Country]))
 
Using that on my tooltip allows me to scroll over my clustered bar chart and no matter what drilldown level it is it will show the town (or country) depending on which level I select.

 

View solution in original post

4 REPLIES 4
Highlighted
Super User IX
Super User IX

Re: Tooltips and Strings

I believe you want ISINSCOPE instead of ISCROSSFILTERED

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Super User IX
Super User IX

Re: Tooltips and Strings

HASONEVALUE could also work potentially.

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Super User IX
Super User IX

Re: Tooltips and Strings

Highlighted
Helper I
Helper I

Re: Tooltips and Strings

Thank you everyone!

 

It works with either ISFILTERED, HASONEFILTER and HASONEVALUE (but not ISINSCOPE).

 

It was my logic that was faulty because town will always line itself and into country but a country only lines into itself. When I had it the other way around it just kept showing me country.

 

Measure=IF(ISFILTERED('Table'[Town]),VALUES('Table'[Town]),VALUES('Table'[Country]))
 
Using that on my tooltip allows me to scroll over my clustered bar chart and no matter what drilldown level it is it will show the town (or country) depending on which level I select.

 

View solution in original post

Helpful resources

Announcements
Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors