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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
888once
New Member

Filter not working

I have two tables.  One with company names, and another that has company names with key words.  I am trying to filter a matrix by the keywords, but choosing them in a slicer is not filtering down the matrix.  Relationship is set correctly.  I have made two dummy tables that are similar, and the results are the same.  What am I missing?  See below - When I click on Car, I should only get Red.

 

Screenshot 2023-11-06 192757.pngScreenshot 2023-11-06 192811.pngScreenshot 2023-11-06 192820.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @888once ,

 

Based on the screenshots, you're supposed to filter Sheet2 by color from Sheet1 but you are filtering by Type in Sheet2 which relationship doesn't flow to Sheet1.  If you want the relationship to flow to and from a table, you need to set Cross filter direction to Both. But the bigger question is why create a separate Color table if it isn't what you're going to use as a filter?










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @888once 

 

You can try the following methods.

Measure = IF(SELECTEDVALUE(Sheet2[Color])=SELECTEDVALUE(Sheet1[Color]),1,0)

Put measure in the filters of the view of colour and set it equal to 1.

vzhangti_0-1699521450288.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

 

danextian
Super User
Super User

The irection of your relationship shows where the filter is flowing from and to

danextian_0-1699325221694.png

 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @888once ,

 

Based on the screenshots, you're supposed to filter Sheet2 by color from Sheet1 but you are filtering by Type in Sheet2 which relationship doesn't flow to Sheet1.  If you want the relationship to flow to and from a table, you need to set Cross filter direction to Both. But the bigger question is why create a separate Color table if it isn't what you're going to use as a filter?










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

You are backwards.  I am trying to filter sheet 1 by selecting a type in sheet 2.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.