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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Jayaselvan
Helper II
Helper II

Help me to avoid Many to Many relationship

Hi All,

I have two tables and connected via many to many relationship. I created the filter table to achive the below functionality.

Scenario A:

When I select No in Remove filter. The below table should show columns 0 & 1.

Jayaselvan_0-1710825275062.png

Scenario B:

When I select Yes in Remove filter. The below table should show columns 0.

Jayaselvan_1-1710825313270.png

Please help me to achive this part from many to many relationship. Thanks in advance.

Dashboard Link

2 REPLIES 2
TomMartens
Super User
Super User

Hey @Jayaselvan ,

 

due to the fact that the value 0 can be assigned to Yes AND No there is an extra complexity in your model. In situtation like this I tend to create an extra table that only contains one column, namely value, containing the values 0 and 1. In this example I would name this table bridge_remove

 

Then I create this model

 

Main[Remove] * --> 1 bridge_remove[Value] 1 <--> * Filter[Value]

 

Following this pattern removes the many-to-many relationship, but then there is there is the cross-filter direction "both" between the Filter and the bridge table. I consider cross-filter-direction Both, less impactful on measures and overall model performance.,

 

Hopefully, this helps provides a new idea and helps to tackle your challenge.

 

Regards,

Tom

 

P.S.: Not sure, but if the Filter table is only there to make the life of the report's users more simple, then you have to keep in mind that many of these "comforting" features can kill your model.



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Idrissshatila
Super User
Super User

Hello @Jayaselvan ,

 

to avoid many to many relationship, you should build a starschema data model.

 

learn more about starschema https://learn.microsoft.com/en-us/power-bi/guidance/star-schema

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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