cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Show total by year in tooltip

Hello, I have a stacked area chart displaying the number of men and women by year. When a user hovers over a particular year, I want the tooltip to show the total men + women for that year only. Here's the non-working report: https://drive.google.com/file/d/1RJcxZGo1qeeYLeTsNJBJ5dfA2l9VZ6ed/view?usp=sharing

 

For instance, if someone hovers over year 2015, it should say:

Male 7

Female 7

Total 14

 

If someone hovers over year 2017, it should say:

Male 5

Female 14

Total 19

 

Can someone show me how to achieve this? Thank you for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Continued Contributor
Continued Contributor

Hi @empoweredbi 

 

Please refer to following article.

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips

 

You just need to define the new page as tooltip, put in a table or a card with Male, Female, and Number from your table. Select the tooltip in your visual under the format tab. When you hover, it will automatically filter by the year you are hovering.

View solution in original post

3 REPLIES 3
Highlighted
Continued Contributor
Continued Contributor

Hi @empoweredbi 

 

Please refer to following article.

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips

 

You just need to define the new page as tooltip, put in a table or a card with Male, Female, and Number from your table. Select the tooltip in your visual under the format tab. When you hover, it will automatically filter by the year you are hovering.

View solution in original post

Highlighted
Frequent Visitor

Hi @empoweredbi 

Create measure as 

Count total Measure = CALCULATE(COUNT(Sheet1[sex]),ALLEXCEPT(Sheet1,Sheet1[year]))
and add this to tooltips 
 
 

 

image.png

Highlighted

Thank you both! Going with reponse #1 as it can be made to look cleaner on a stacked area chart.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors