Forum Discussion

Riley22's avatar
Riley22
New Member
1 year ago
Solved

Text box or visual to hide a graph based on a filter

Hi,

I've really tried searching for a solution but there isn't anything that quite works for what I need!

 

I have graphs and cards that I need to hide based on a filter but I'd also like a text box to appear over the image when the filter is selected that says something like "Data isn't available for this *filter."

 

I've created a measure 

Text box = if (SELECTEDVALUE(Census[Ward])="Ward name",1,0)
 
This works with treemap if I set the transparency but I can't get the text to hide with conditional formatting.
 
Bookmarks don't work for this ask as the final product is exported to powepoint (where required) and I'd need to create numerous pages which wouldn't be the most efficient approach.
 
Would be really greatful for any guidance, thanks
  • Had to deal with this for a client-facing PowerPoint export, tricky without bookmarks. One workaround that worked for me was layering a card visual with the warning message and using a measure like yours to control both its visibility and the transparency of the underlying graph via conditional formatting.

     

    You can’t hide a textbox directly, but you can fake it using a card visual with no border and transparent background. Use the same logic to dim or blank the chart underneath by setting its data colors or title to white when the filter is triggered. Not perfect, but works reliably in exports.

2 Replies

  • TomOs's avatar
    TomOs
    Icon for Resolver I rankResolver I

    Had to deal with this for a client-facing PowerPoint export, tricky without bookmarks. One workaround that worked for me was layering a card visual with the warning message and using a measure like yours to control both its visibility and the transparency of the underlying graph via conditional formatting.

     

    You can’t hide a textbox directly, but you can fake it using a card visual with no border and transparent background. Use the same logic to dim or blank the chart underneath by setting its data colors or title to white when the filter is triggered. Not perfect, but works reliably in exports.

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Riley22 Create a measure to control the color of the text. Use the additional color digits to control the transparency. #FF0000 is red and #FF000000 is 100% transparent red.