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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gozieokeke
New Member

Use slicer to filter table with many to one relationship

I need help setting up my relationships across two tables to allow me filter correctly.

 

The first table contains all staff information with txtEmployeeNumber as the primary key.

The second table has information on the sections and some staff work across various sections.

ADUsers                            StaffSection        

txtEmployeeNumber  1:*  txtStaffID       

Title                                   txtSection  

The cardinality is many to one and cross-filter direction is both.

 

I have created a table visual from my staff table and want to filter using a slicer based on sections so that when I click each section, any staff assigned to that section should appear.

The table works fine but when I click a section in the slicer, the table goes empty.

 

Here is a screenshot of what I am trying to achieve and my results so far.

When the slicer is not selected

Slicer not selectedSlicer not selected

And when the slicer is selected 

Slicer selectedSlicer selected

Could someone please point me in the right direction?

1 REPLY 1
Wilson_
Super User
Super User

Hi gozieokeke,

 

Double check that the values in the two columns in the relationship are actually matching properly. That's my first thought whenever a slicer returns nothing. If they visually look the same, one common issue is a difference in white spaces.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




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

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.