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

Re: Tooltips and Strings

I believe you want ISINSCOPE instead of ISCROSSFILTERED

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

Not link spamming! If I posted a link in reply it is because I did assume you know how to search the web but thought it was the fastest way to fix your issue.

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.

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

Not link spamming! If I posted a link in reply it is because I did assume you know how to search the web but thought it was the fastest way to fix your issue.

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

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors