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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
dougyk23
New Member

Search multiple tables/visuals with on textbox that a user inputs the search term

If i have 3 tables, each with multiple columns where there are no relationships. But they have either an email address or firstname or lastname fields. I would like a way for a user to enter part of a user's name in a search box and it filter all the visuals in report view. 

EX:

Table 1

Email addressOrg
john.doe@gmail.commarketing
Jane.doe@gmail.comfinance
David.smith@gmail.com

CEO

 

Table 2

Firstname

Last name

JohnDoe
JaneDoe
GeorgeSmith

 

Table 3

NameCompany
John Doe

ABC

Jane DoeDEF
John SmithHIJ

 

I have a table visual for each of these tables.

I want a search box/filter where the user can type in any part of a name, and the 3 tables filter to show those rows where:

-Table 1 filtres on the  "email" field

-table 2 filters on "first name" or "last name" 

-Table 3 filters on 'Name' column

5 REPLIES 5
DataInsights
Super User
Super User

@dougyk23,

 

Try the Text Filter visual:

 

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?tab=Overview 





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

Proud to be a Super User!




I have tried the text filter visual but it seems that only searches over one table. 

@dougyk23,

 

Try this solution.

 

1. Create a calculated table for the columns you want to search:

 

SearchTable = 
DISTINCT (
    UNION (
        DISTINCT ( Table1[Email address] ),
        DISTINCT ( Table2[First Name] ),
        DISTINCT ( Table2[Last Name] ),
        DISTINCT ( Table3[Name] )
    )
)

 

2. Rename the column in this table to "Value".

 

3. Create measure:

 

Search Filter = 
IF ( MIN ( Table1[Email address] ) IN VALUES ( SearchTable[Value] ) ||
    MIN ( Table2[First Name] ) IN VALUES ( SearchTable[Value] ) ||
    MIN ( Table2[Last Name] ) IN VALUES ( SearchTable[Value] ) ||
    MIN ( Table3[Name] ) IN VALUES ( SearchTable[Value] ), 1
)

 

4. Add the measure [Search Filter] as a visual filter for each table visual (Search Filter is 1):

 

DataInsights_0-1651082764416.png

 

5. Using the Text Filter visual, search for a value:

 

DataInsights_1-1651082873390.png

 





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

Proud to be a Super User!




@DataInsights mate, this is brilliant. Well done!  Hopefully the original poster @dougyk23 will mark this as a solution given that you've gone out of your way to put this together.

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

I am not sure why this is not marked as the solution, it seems to solve the problem quite well for me

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.