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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Empty visual if search box is empty

Hi all,

Hope someone can help me with the following.

On the left side, you can see a lot of information.

I do not want to see this info at all if the search box is empty.

So, If a container_nr is mentioned in the search box, I only want to see the corresponding info of this container_nr on the left side.

Thanks!

John

Knipsel.JPG

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Create a measure similar to the one below:

Filtering = IF(COUNTROWS(ALL('Table'[cat])) = COUNTROWS(ALLSELECTED('Table'[cat])), BLANK(), 1)

 

Now filter the table visualization for all non blank values:

MFelix_0-1622539306847.png

 

MFelix_1-1622539332117.png

MFelix_2-1622539353776.png

 

Be aware that with this syntax if all your container number start with the same letter in this case M and it's the only value that is inputed in the search bar the result will also be an empty table.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can also create a disconnected table as a slicer, then create a measure and apply it to the visual level filter.

V-lianl-msft_0-1622602044790.pngV-lianl-msft_1-1622602053089.png

 

 

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

 

MFelix
Super User
Super User

Hi @Anonymous ,

 

Create a measure similar to the one below:

Filtering = IF(COUNTROWS(ALL('Table'[cat])) = COUNTROWS(ALLSELECTED('Table'[cat])), BLANK(), 1)

 

Now filter the table visualization for all non blank values:

MFelix_0-1622539306847.png

 

MFelix_1-1622539332117.png

MFelix_2-1622539353776.png

 

Be aware that with this syntax if all your container number start with the same letter in this case M and it's the only value that is inputed in the search bar the result will also be an empty table.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors