cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 IV
Super User IV

Re: Tooltips and Strings

I believe you want ISINSCOPE instead of ISCROSSFILTERED

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

Putting square pegs in round holes since 1972.

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 IV
Super User IV

Re: Tooltips and Strings

HASONEVALUE could also work potentially.

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

Putting square pegs in round holes since 1972.

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 IV
Super User IV

Re: Tooltips and Strings

@lauren1192 , Refer if these can help you

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

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

Upcoming Events

Upcoming Events

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

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors