Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Dave1234
Frequent Visitor

Custom tooltip measure that filters

I have a doughnut chart that is filtered for one catergory which is heating and the lage filter is set to just a single period p5

 

I want to create a measure that i can use as a tooltip that will still filter the catergory so it only shows the one im hovering over but will show all periods for that catergory 

 

Can anyone help please 

4 REPLIES 4
Sahir_Maharaj
Super User
Super User

Hello @Dave1234,

 

Can you please try this approach:

Tooltip Measure = 
VAR SelectedCategory = SELECTEDVALUE('YourTable'[Category])
RETURN
CALCULATE(
    SUM('YourTable'[Value]),  -- Or whatever measure you're summing up
    'YourTable'[Category] = SelectedCategory,
    ALL('YourTable'[Period])  -- This removes the filter on the Period
)

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Its only showing P5 for that catergory ic want it to show all the periods in the bar chart for that catergory, thank you

Hi All,
Firstly Sahir_Maharaj thank you for your solution!
And @Dave1234 ,you want to click on P5 to display the entire bar chart, unfortunately due to the limitations of the Power BI environment this is not easy to do, after we select P5, the entire pie chart will also be changed, the pie chart will only select the value of P5, so in this case, the filtering is mandatory, we can not ignore it.

Measure = CALCULATE(SUM('heating_cooling_sales'[Sales]),ALLSELECTED('heating_cooling_sales'[Category]))

vxingshenmsft_0-1726809722357.png

We also tried the following, which is to not keep all the filters, this seems to allow you to show all the values when selecting P5, but there is still a problem, which means that he can't separate the different sales by category, it will only be one type of sales.

 

vxingshenmsft_2-1726810095788.png

 

vxingshenmsft_1-1726809810311.png

Again, I apologize that the limitations of the pie chart may not be perfect for your needs, if you have further thoughts or ideas, feel free to contact me and I will get back to you as soon as I receive the message!

Hope it helps!

 

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 


 

Thank you i am going to try this, should this show all the periods seperate  so like a bar chart for p1, p2, p3 etc when i hover over the doughnut chart, thank you

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.