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
NJ_hokie
Regular Visitor

Show custom message when tables are linked but selected value not found

When you select a value in a slicer, if that value is not found in the linked table, how do you show a message (e.g. 'value not found'), instead of it just being blank?

Attached image shows all. Table names at top (tblName and tblTestScore). Linked by NameID field. Part a) shows it correctly showing the two score values for NameID 1. But if NameID 3 is selected I'd want to indicate that there are no values, not just show a blank table as currently shown. 

Thanks for any help. noDataInTableImage1.png

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@NJ_hokie 

there is a workaround for you. You can create a card beside the table

 

comments = if (ISBLANK(max(TestScore[Score])),"no value","")
 
11.png
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

speedramps
Community Champion
Community Champion

Hi @NJ_hokie 

 

@ryan_mayu  has suggested a good idea but it does not work if you select more than one name

 

Try this method ...

Right click on Name and select Show items with no data

speedramps_0-1750176238158.png

another way is create measure with + 0.

This will always force a value, even when there is nothing

 

Answer = 
SUM(Scores[Score]) + 0

 speedramps_1-1750176404458.png

Please click thumbs up and accept solution. You can accept more than one solution. Thank you !

View solution in original post

6 REPLIES 6
speedramps
Community Champion
Community Champion

Hi @NJ_hokie 

Thanks for accepting a solution.

Please can you also accept mine.

You cam accept more than one solution to show you appreciation to helpers.
It was one of the first and works ok.

The [accept solution] points help reflect my competency and your gratitude.

Thank you for your assistance in the matter

 

I accepted both solutions, which included yours, immediately after my earlier reply. I no longer see an 'accept as solution' after what you wrote, so as far as I can tell I did accept it. I'm new to this forum so if there is something I did not do correctly let me know and I will correct it. 

NJ_hokie
Regular Visitor

Both of these solutions help and answer my question in various ways, thanks!

speedramps
Community Champion
Community Champion

Hi @NJ_hokie 

 

@ryan_mayu  has suggested a good idea but it does not work if you select more than one name

 

Try this method ...

Right click on Name and select Show items with no data

speedramps_0-1750176238158.png

another way is create measure with + 0.

This will always force a value, even when there is nothing

 

Answer = 
SUM(Scores[Score]) + 0

 speedramps_1-1750176404458.png

Please click thumbs up and accept solution. You can accept more than one solution. Thank you !

NJ_hokie
Regular Visitor

no value image.pngThanks @ryan_mayu, this is generally getting toward what I need, I just need the info in the table itself. If adding your comments measure to the table as shown in this image, what I think or hope should happen is it only shows nameID 3, with an actual blank for score and 'no value' under comments. The other nameIDs would not be displayed unlike shown. 

ryan_mayu
Super User
Super User

@NJ_hokie 

there is a workaround for you. You can create a card beside the table

 

comments = if (ISBLANK(max(TestScore[Score])),"no value","")
 
11.png
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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.