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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ldwf
Helper V
Helper V

How to completely hide a card when there is no data

I have a matrix for which I am using a separate card on top of each of the row headers (i.e, list of customers), and the card is used as a tooltip.  So when viewer hovers over Customer A, they see a description on Customer A, and when they hover over Customer B, they see a description for Customer B, etc.
matrix.PNG

The problem I have is that there are not always going to be 4 customers because it depends on what is selected in a slicer that determines the records returned.  So if Customer A doesn't appear on the report based on slicer, then Customer B will move to the top of the list, and the card/tooltip I created for Customer A remains there, which I don't want.  I would like to completely remove any card if there is no data for the customer, and when rows get shifted up, I would like the card/tooltip to stay with that row header.  Is this possible?

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

You can change the Tooltip canvass size settings.
 
However, I don't think you dynamically change the Tooltip size.
 
See attached links
 
Please click thumbs up and the [accept solution] button. 
 
 
 
 
Also see
 
And this
 

View solution in original post

7 REPLIES 7
speedramps
Super User
Super User

You can change the Tooltip canvass size settings.
 
However, I don't think you dynamically change the Tooltip size.
 
See attached links
 
Please click thumbs up and the [accept solution] button. 
 
 
 
 
Also see
 
And this
 
speedramps
Super User
Super User

Click here to watch a video to learn how to add bold, underlined and colours using HTML in Power BI visual 

https://www.youtube.com/watch?v=I6SnFuT0JsY 

 

Then use this method in custom visual.

 

As explained before a custom tooltip is the best pratice for resolving your type of problem.

It is what everyone else uses.

Please abandon using cards for each row or a standard tooltip. Those methods will not work.

If you try custom tootip with the HTML visuals then it will work.

 

learn about fancy custom tool tips here

https://www.youtube.com/watch?v=epDb9ruV0bU

https://www.youtube.com/watch?v=F4BOM4H7b0c


Please click thumbs up and the [accept the solution] button.

You are drip feeding infomation.

There was no mention of bold and underlined text in you first or second question.

I apprecaite you might be too busy to write a clear and concise description of the problem, but we are busy to answer questions 3 times. 😀😀😀


I want to help you but you will get a quicker and better answer if you ask the right questions and provide examples of input and outputs next time.  Many thanks 😀😀😀

The first video by Curbal is what I used and it works for me except the size of the tooltip is always the same regardless of the text I am displaying. i.e, I set the canvas settings to be able to fit the value that has the most text.   Is there a way to code autosizing in the html code so that the size of the box varies depending on the amount of text being displayed?  Or do I need to maybe force each one to be a certain width and height?

speedramps
Super User
Super User

You can easily view the example via your mobil phone or home computer.  😁😀😀

 

You can build very advanced custom tooltips with fonts, colours and pictures.

That is the best pratices for the type of problem you have.

Everyone globally uses Too tips.

Your user needs to lean how to use Power best pratice like tooltips rather than come up will their own solutions that dont work like overlaying cards on each row,

 

learn about fancy custom tool tips here

https://www.youtube.com/watch?v=epDb9ruV0bU

https://www.youtube.com/watch?v=F4BOM4H7b0c

 

Please click thumbs up and the [accept soluton button].

Thank you !

 

Hi.  These options do not work for what we are trying to do.  Perhaps I am not explaining the requirement well.  I built a custom tooltip with no problem.  It is a table visual with two columns - Country and Description.  On the matrix, I can hover any of the countries and the tooltip does work, showing the text corresponding to that country.  However, the text is not to be dipslayed as simple text.  Each description has a mixture of bold words, underlined words, and there are line breaks.   I can't seem to add a column comprised of mixed formats to a simple table visual of rows and columns.  I was able to use html content card and it looks great.  However, I had to create a separate card for each country.  I would like to just have a simple table with all the countries and the description column formatted just like the card, but can't.  So I created a separate custom tooltip page for each country and put a card on the corresponding row, but in the event a country doesn't show up on the report, the rows move up and the card is still there but for a country that's not on the report

speedramps
Super User
Super User

Consider creating a customer Tooltip.

It has many advantages over your current method.
You only need to create one custom tooltip and it will work for all your customers.

Click here to download an example from Onedrive

Click here 

 

 

For security reasons, my company doesn't allow me to download anything.  Can you explain your suggestion and maybe add screen shots?  I already tried this using a custom tooltip by building a simple table with two  columns - country and description.  I can hover over the field in the matrix now and the text appears, but it looks sloppy.  The customer wants some of the text bold, some underlined, line feed, etc.  Each one is formatted differently, and they look nice.  This is why I created a separate card for each customer because using a simple table it doesn't come out nice.  I used the html content visualizaton (downloaded from msoft) and did it this way.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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