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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
andrewa521
Frequent Visitor

Duplicate Text in Multiple Text Filters

Hey all,

 

I have an aytpical problem where I am afraid there is not a good solution to, but I figured I would ask.  Basically I have to Text Filters on the same page, and would like whatever the typed text is to be duplicated between the two text filters.

 

I would try to simply combine the tables, or create some relationship, but there is not a 1 to 1, or many to 1 match despite the fact that the same text automatically appearing in a second text filter would get the result I am looking for.    Any other creative solutions are also welcome!

 

Here is a simple screeenshot, to help you understand:  Basically after I typed ABC in text slicer 1, I would like that to automatically be the value in text slicer 2, so the user doesnt have to search the same thing twice. 

andrewa521_0-1671141874027.png

 

Thanks for reading my post,

Andrew

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @andrewa521 ,

 

If you can accept the existence of only one slicer, and then filter one slicer to filter the two results, you can refer to the following method:

Sample data

Table 1:

vstephenmsft_0-1671156913041.png

Table 2:

vstephenmsft_1-1671156922603.png

Following your explanation, you want text filter 1 to put the ID column of Table 1 and text filter 2 to put the ID column of Table 2. Then Text Filter 1 can sync the entered text to Text Filter 2 after entering the text.

You can create a third table with distinct IDs to solve it.

Third table created using DAX:

Table =
DISTINCT ( UNION ( DISTINCT ( 'Table 1'[ID] ), DISTINCT ( 'Table 2'[ID] ) ) )

vstephenmsft_2-1671157141208.png

Create the relationships.

vstephenmsft_3-1671157173333.png

Now you can see the result. The field in the text filter visual is from the third table.

vstephenmsft_4-1671157264974.pngvstephenmsft_5-1671157274230.png

vstephenmsft_6-1671157280830.png

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @andrewa521 ,

 

If you can accept the existence of only one slicer, and then filter one slicer to filter the two results, you can refer to the following method:

Sample data

Table 1:

vstephenmsft_0-1671156913041.png

Table 2:

vstephenmsft_1-1671156922603.png

Following your explanation, you want text filter 1 to put the ID column of Table 1 and text filter 2 to put the ID column of Table 2. Then Text Filter 1 can sync the entered text to Text Filter 2 after entering the text.

You can create a third table with distinct IDs to solve it.

Third table created using DAX:

Table =
DISTINCT ( UNION ( DISTINCT ( 'Table 1'[ID] ), DISTINCT ( 'Table 2'[ID] ) ) )

vstephenmsft_2-1671157141208.png

Create the relationships.

vstephenmsft_3-1671157173333.png

Now you can see the result. The field in the text filter visual is from the third table.

vstephenmsft_4-1671157264974.pngvstephenmsft_5-1671157274230.png

vstephenmsft_6-1671157280830.png

 

Best Regards,

Stephen Tao

 

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

 

Thanks so much, that worked!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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