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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
avickery
New Member

Date Relationships with Google analytics

Im trying to create a relationship between a csv file and a google analytics account. I have a column in each data table labeled month of year. 

The data in my csv file appears as a num 1, 2, 3 etc. The data from google analytics appears also as a number but with a zero 01,02,03 etc. 

 

I keep trying to create a relationship between the colums but I get an error that says "You cannont create a relationship between these two columns because one of the columns must contain unique values."

 

I have tried to reformat them in every way I know how to get them to match but nothing is working. 

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @avickery,

In order to create a relationship in between these two columns in Power BI, at least one side of the relationship must be tied to a column that is unique in the table. Please verify a column in one side is unique. There is no many to many relation in Power BI model.

If there are multiple values in columns, you can remove the multiple as follows.

9.png

Please click the table, right click-> Power Query Editor, select the column including the values and right click->Remove Duplicates highlighted in yellow. Click Apply and Close, you will get the column having unique values. Finally, you can create relationship between the columns.
 

If you have any otherproblem, please let me know.

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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