cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
badger123 Member
Member

Text filter help

Hi all,

 

I'm looking for some help with something I'm struggling with. I am using the text filter visual which uses table 2 phrase as the field. I have created a relationship between Table 1 and Table 2 so that my table visual shows the items when a phrase contains the query term typed in the search box.

 

What I'm trying to achieve is to exclude the item from showing when the phrase searched is the same as the item? E.g. if item1 was searched for then only item2 would display in this case.

 

Table 1

itemcolumn2column3
item1  
item2  
item3  

 

Table 2

itemphrasephrase_volume
item1item1100
item1phrase2500
item1phrase3300
item2item1400
item2phrase5500
item2phrase6600
item3phrase7500
item3phrase8300
item3phrase9400

 

Thanks in advance! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yulgu-msft Super Contributor
Super Contributor

Re: Text filter help

Hi @badger123,

 

Similar to rajendran's suggestion, but I would prefer to add a measure to visual level filter.

check1 = IF(SELECTEDVALUE(Table_1[item])=SELECTEDVALUE(Table_2[phrase]),0,1)

1.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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
rajendran Super Contributor
Super Contributor

Re: Text filter help

HI @badger123

 

You can create a calculated column 

same item phrase = IF('Table1'[item]='Table1'[phrase],1,0)
 
and you can apply a visual filter on this column and set the filter value to 1.
 
Thanks
Raj
v-yulgu-msft Super Contributor
Super Contributor

Re: Text filter help

Hi @badger123,

 

Similar to rajendran's suggestion, but I would prefer to add a measure to visual level filter.

check1 = IF(SELECTEDVALUE(Table_1[item])=SELECTEDVALUE(Table_2[phrase]),0,1)

1.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 47 members 975 guests
Please welcome our newest community members: