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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
klynch13
New Member

Data Not Filtering Correctly when Establishing Relationship Between Two Datasets

I have two unique datasets where I am trying to filter the second dataset using the column headers of the first dataset (year, month, location, date, line, shift). Whenever I create a relationship between the two datasets (may-to-many), the only data that filters correctly is the column header I used to create the relationship. All other filters do not effect the data. 

 

How do I set up my relationships so that my data filters correctly on the 2nd data set? Any help is appreciated!

 

klynch13_1-1701472161753.png

 

 

klynch13_0-1701472113579.png

 

1 REPLY 1
Fowmy
Super User
Super User

@klynch13 

Having Many to Many relationships can produce unexpected and incorrect results if not used properly. I suggest, to avoid the M2M here, create seperate tables ( dimensions ) for fields that need be used for slicing and filetering. Create a calendar table. If line and shift are like header and details type,  then between the tables you can create create one-to-many relationships otherwise, create separate dimension tables for them as well.

This should work for your calculations correctly. 

Share a dummy PBI file for you face issues.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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