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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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_
Memorable Member
Memorable Member

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.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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