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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to display the correct values using the dimension table in a many to many relationship

Hello 

 

I would like to merge 2 facts tables and display a clustered colomun chart. 

In this case a product can belong to mutiple markts (many to many relationship )

 

When I filter the chart using the market id from the fact table, I get the wanted behaviour as shown as seen below 

 

displayOK.PNG

 

 

 

 

 

 

 

 

 

 

 

However, when i use the market_cd from the dimension table, i get the following result

 

displayNOK.PNG

The 2020 june-July period for the product S, shouldn't be displayed however it is showen because of the many to many relationship. 

I there a way to create a measure that will fix this problem and allow me to display the correct info while filtering the information with the market_cd from the dimension table ?

 

I have inclueded a sample data

https://drive.google.com/file/d/1uOROUu_0g8mgc8OMJhyiflFD1wAnaGNW/view?usp=sharing

 

Thank you for your help,

Mariem,

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I have done some changes, Created a combined key, and joined with those.

 

Please find the file after signature

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I have done some changes, Created a combined key, and joined with those.

 

Please find the file after signature

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.