cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhavsar08
Frequent Visitor

Unable to create relationship.

Dear Experts, i have two tables, one column contains unique id's and from another table one column contains unique + duplicate values and i wanted to create a relationship "one to many" as for one to many but I am not able to create one. i am getting error the cardinality you selected isn't valid for this relationship. i tried every possible outcome but had hard luck.

1 ACCEPTED SOLUTION
bhavsar08
Frequent Visitor

Hello Experts, 

the issue is resolved, i had smartsheet connected to PBIX and the issue was i wanted one to many relationship but in my first column there was text mentioned, and that caused the table not to convert to numbers, so i removed those and applied one to many relationships. so even i have duplicates in second column now i am able to create relationship.
Thanks All!



Cheers!

View solution in original post

4 REPLIES 4
bhavsar08
Frequent Visitor

Hello Experts, 

the issue is resolved, i had smartsheet connected to PBIX and the issue was i wanted one to many relationship but in my first column there was text mentioned, and that caused the table not to convert to numbers, so i removed those and applied one to many relationships. so even i have duplicates in second column now i am able to create relationship.
Thanks All!



Cheers!

Hi @bhavsar08 ,

 

Glad to hear that your problem has been resolved. Please mark your own reply as the solution!

 

Best Regards,

Stephen Tao

v-stephen-msft
Community Support
Community Support

Hi @bhavsar08 ,

 

The error is often caused with the relationship you are trying to create from a column in the "FROM" table to a column in the "TO" table. One of the columns must have unique product numbers. You need to make sure that one of the tables has a unique product number and then you won't have any issue.

vstephenmsft_0-1638524164084.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bhavsar08 , You can blank value on one side in the key column or duplicate value.

 

Blank and null is also not allowed check that

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!