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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Many To Many relation not showing unique data

Hi All,

I have two files where one is coming from direct sql query and other one is  a excel file. Power BI automatically creates Many to many relationship but still when i try to create table i get duplicates in quota column. I am completely new to power BI and not understanding why is this happening. I have also attached the sample pbix file here.

 

Capture_1.PNG

1 ACCEPTED SOLUTION
Iamnvt
Continued Contributor
Continued Contributor

if you are new to Power BI, you shouldn't use Many to Many relationship.

You can try to turn it to One to Many relationship by creating 2 Dimension tables:

Table 2 = DISTINCT(UNION(VALUES(Sheet1[MONTH]), VALUES('Sheet1 (2)'[Month])))
Table = DISTINCT(UNION(VALUES(Sheet1[CL_KEY]), VALUES('Sheet1 (2)'[CL_KEY])))

then use that 2 tables link to the fact table.

you can check PBI file here:

https://1drv.ms/u/s!Aps8poidQa5zk6sL6-1C5BrCmzyRug

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Actually, the power bi reads the quota you have on your database per month. If you will remove the month, this will show:

 

Untitled.png

Iamnvt
Continued Contributor
Continued Contributor

if you are new to Power BI, you shouldn't use Many to Many relationship.

You can try to turn it to One to Many relationship by creating 2 Dimension tables:

Table 2 = DISTINCT(UNION(VALUES(Sheet1[MONTH]), VALUES('Sheet1 (2)'[Month])))
Table = DISTINCT(UNION(VALUES(Sheet1[CL_KEY]), VALUES('Sheet1 (2)'[CL_KEY])))

then use that 2 tables link to the fact table.

you can check PBI file here:

https://1drv.ms/u/s!Aps8poidQa5zk6sL6-1C5BrCmzyRug

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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