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

Manage multiple charts with a search bar

I have 2 separate tracking tables, in which I pay attention to the status of a given user for given tasks. I would like to visualize these two tables in 2 separate diagrams. The problem is that I want to create a search bar where if the user enters his name, the 2 charts are automatically modified with his values. (I mean, if I type in Adam's name, the 2 charts will show only his data)

 

I have tried several solutions, but so far I have not been successful. If anyone could suggest a solution, I would be very grateful.

 

power bi.PNG

 

Table 1

 

NameTaskStatus

Adam

xyz

in Progress
AdamxyzDone
Joexyzno feedback
PeterxyzqDone

 

Table 2

 

NameTaskStatus
Adamxyzno feedback
Evexyzdone
Peterxyzdone
Joexyzdone
2 ACCEPTED SOLUTIONS
Daniel29195
Super User
Super User

@doemorbe 

create a table containg all the names from both tables as such : 

calculated table ==>  dim_names =  distinct( union  ( distinct(tbl1[name]) , distinct(tbl2[name]) ) 

 

then link this table to both tables on the name column. 

 

 

now in your search bar use the name column from the newly created table .

 

 

View solution in original post

Anonymous
Not applicable

Your solutions is worked @Daniel29195 ,that is so great!

Hi, @doemorbe 

The method provided by super user does work. I created the following example data:

Table1:

vjianpengmsft_0-1721784734912.png

Table2:

vjianpengmsft_1-1721784755303.png

I downloaded the following text search visual object from the visual object marketplace:

vjianpengmsft_2-1721784820344.png

The following visual objects were created in my report:

vjianpengmsft_3-1721784868156.png

I created a calculation table using the following DAX expression:

 

Name Table = 
VAR _table1_name = SUMMARIZE('Table1','Table1'[Name])
VAR _table2_name = SUMMARIZE('Table2',Table2[Name])
RETURN SUMMARIZE(UNION(_table1_name,_table2_name),Table1[Name])

 

vjianpengmsft_4-1721784939081.png

Use this calculated table with Table1, Table2 to create these relationships below:

vjianpengmsft_5-1721784990135.png

Using the name column of the calculation table in the Text search slicer, the results are as follows:

vjianpengmsft_6-1721785045298.png

vjianpengmsft_7-1721785188739.png

vjianpengmsft_8-1721785209656.png

vjianpengmsft_9-1721785227072.png

If your Text Search slicer only works for one visual object, you can check the following visual object interactions to make sure that slicer has enabled filtering for your chart:

vjianpengmsft_10-1721785435154.png

 

I have provided the PBIX file used in this instance below.

 

 

Best Regards

Jianpeng Li

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Your solutions is worked @Daniel29195 ,that is so great!

Hi, @doemorbe 

The method provided by super user does work. I created the following example data:

Table1:

vjianpengmsft_0-1721784734912.png

Table2:

vjianpengmsft_1-1721784755303.png

I downloaded the following text search visual object from the visual object marketplace:

vjianpengmsft_2-1721784820344.png

The following visual objects were created in my report:

vjianpengmsft_3-1721784868156.png

I created a calculation table using the following DAX expression:

 

Name Table = 
VAR _table1_name = SUMMARIZE('Table1','Table1'[Name])
VAR _table2_name = SUMMARIZE('Table2',Table2[Name])
RETURN SUMMARIZE(UNION(_table1_name,_table2_name),Table1[Name])

 

vjianpengmsft_4-1721784939081.png

Use this calculated table with Table1, Table2 to create these relationships below:

vjianpengmsft_5-1721784990135.png

Using the name column of the calculation table in the Text search slicer, the results are as follows:

vjianpengmsft_6-1721785045298.png

vjianpengmsft_7-1721785188739.png

vjianpengmsft_8-1721785209656.png

vjianpengmsft_9-1721785227072.png

If your Text Search slicer only works for one visual object, you can check the following visual object interactions to make sure that slicer has enabled filtering for your chart:

vjianpengmsft_10-1721785435154.png

 

I have provided the PBIX file used in this instance below.

 

 

Best Regards

Jianpeng Li

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

Daniel29195
Super User
Super User

@doemorbe 

create a table containg all the names from both tables as such : 

calculated table ==>  dim_names =  distinct( union  ( distinct(tbl1[name]) , distinct(tbl2[name]) ) 

 

then link this table to both tables on the name column. 

 

 

now in your search bar use the name column from the newly created table .

 

 

Hi Daniel, thank you very much for your help, it works perfectly.

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.