Forum Discussion
Anonymous
7 years agoNot 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...
- 7 years ago
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:
Iamnvt
7 years agoContinued 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: