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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
fjjpeeters1976
Helper II
Helper II

Setting visibility of graphs/tables based on selected value

Hi all,
I have created below waterfall chart and I am now working on a tooltip to show more information for each item. As each of below items require a bit different explanation, some need a split into accounts, others need a split in entity etc it would be great if I could toggle the visibility of visuals based on selected fields. For example when I hover above the category energy people might want to see a split in gas, electricity etc, but when they hover over Group Recharges they might want to see entities. Is there a way that when they hover over energy they only see the graph with the split but not the others and the other way around? Would be best if it could be done without using bookmarks. Any creative ways are welcome.

fjjpeeters1976_0-1750343968680.png

 

1 ACCEPTED SOLUTION
Nasif_Azam
Solution Sage
Solution Sage

Hey @fjjpeeters1976 ,

You can achieve the desired effect without using bookmarks by implementing dynamic visibility through a combination of separate visuals, slicers, and DAX measures. Here's a step-by-step approach:

 

  1. Create Separate Visuals for Different Splits: For each category, set up separate visuals to display the corresponding split information. For instance, one visual can show a split for "Energy" (Gas, Electricity, etc.), while another can display the breakdown for "Group Recharges" (entities, etc.).

  2. Use a Selection Control or Slicer: You can add a slicer or dropdown to allow users to select a category (e.g., Energy, Group Recharges). This control will determine which visual to display. Sync Slicers can be helpful to apply the same slicer across multiple pages or visuals.

  3. Dynamic Visibility via DAX Measures: Write DAX measures to determine the visibility of visuals based on the selected field. For example, you could create a measure like this:

    ShowEnergySplit = IF(SELECTEDVALUE(Category[CategoryName]) = "Energy", 1, 0)

    You can use this measure to conditionally format visuals, adjusting their visibility based on the user's selection.

  4. Control Visual Visibility with Conditional Formatting: By applying conditional formatting to properties like Transparency, you can hide visuals when they are not needed. For instance, if "Energy" is selected, the visual for energy splits would be shown, while others would be hidden by setting their transparency to 100%.

  5. Custom Tooltips for Detailed Information: Power BI allows you to create tooltips that can provide additional information. You can set up dynamic tooltips that change depending on the category being hovered over, ensuring that users get the most relevant data for each selection.

 

For Detailed Information:

Power BI Visual Interactions
Conditional Formatting in Power BI
DAX to Control Visual Visibility
Using Slicers and Filters

 

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

View solution in original post

3 REPLIES 3
v-pagayam-msft
Community Support
Community Support

Hi @fjjpeeters1976 ,
Thank you @Elena_Kalina  and @Nasif_Azam  for the helpful response!

I just wanted to kindly follow up to see if you had a chance to review the previous response provided by community members. I hope it was helpful. If yes, please Accept the answer so that it will be helpful to others to find it quickly.

Thank you.

Regards,
Pallavi G.

Elena_Kalina
Solution Supplier
Solution Supplier

Hi @fjjpeeters1976 

Try to do the following

  1. Create separate tooltip pages:

    • "EnergyTooltip" (with gas/electricity breakdown)

    • "RechargesTooltip" (with entity breakdown)

  2. Configure visual interactions:

    • Select your waterfall chart

    • Go to Format → Edit interactions

    • For each category button:

      • Set "Energy" to show "EnergyTooltip"

      • Set "Group Recharges" to show "RechargesTooltip"

      • Set all others to "None"

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

Nasif_Azam
Solution Sage
Solution Sage

Hey @fjjpeeters1976 ,

You can achieve the desired effect without using bookmarks by implementing dynamic visibility through a combination of separate visuals, slicers, and DAX measures. Here's a step-by-step approach:

 

  1. Create Separate Visuals for Different Splits: For each category, set up separate visuals to display the corresponding split information. For instance, one visual can show a split for "Energy" (Gas, Electricity, etc.), while another can display the breakdown for "Group Recharges" (entities, etc.).

  2. Use a Selection Control or Slicer: You can add a slicer or dropdown to allow users to select a category (e.g., Energy, Group Recharges). This control will determine which visual to display. Sync Slicers can be helpful to apply the same slicer across multiple pages or visuals.

  3. Dynamic Visibility via DAX Measures: Write DAX measures to determine the visibility of visuals based on the selected field. For example, you could create a measure like this:

    ShowEnergySplit = IF(SELECTEDVALUE(Category[CategoryName]) = "Energy", 1, 0)

    You can use this measure to conditionally format visuals, adjusting their visibility based on the user's selection.

  4. Control Visual Visibility with Conditional Formatting: By applying conditional formatting to properties like Transparency, you can hide visuals when they are not needed. For instance, if "Energy" is selected, the visual for energy splits would be shown, while others would be hidden by setting their transparency to 100%.

  5. Custom Tooltips for Detailed Information: Power BI allows you to create tooltips that can provide additional information. You can set up dynamic tooltips that change depending on the category being hovered over, ensuring that users get the most relevant data for each selection.

 

For Detailed Information:

Power BI Visual Interactions
Conditional Formatting in Power BI
DAX to Control Visual Visibility
Using Slicers and Filters

 

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.