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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
epica81
New Member

Can't set relation 1:*

Hi, 

I tried to search on the comunity, I fonund a lot of suggestion but I can't find a real solutions.

I need to set a relation 1:* between 2 tables, but the application told me i can't and set it many to many.

 

I try to detect if there was error on  the table, or duplicated value.

 

This is the colum statistic: 

epica81_0-1624888754029.png

But If i try to manage a distinctcount (

DISTINCTCOUNT(ART_CODE[Code])

) of the column it returned 1658.

If I manage a distinct of that column from SQL, It returned 1659 elements, so what duplicate find PowerBI???

 

I try to search the duplicate on the defined colum but i can't find IT, and i'm sure there isn't inside.

Have you any suggestions?

Thanks

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@epica81 , check for any blank/null value in Code, because power bi does not allow that on the one side.

 

if not, put code and count of code in a table visual and sort desc on the count and check for any row > 1.

 

 

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

3 REPLIES 3
amitchandak
Super User
Super User

@epica81 , check for any blank/null value in Code, because power bi does not allow that on the one side.

 

if not, put code and count of code in a table visual and sort desc on the count and check for any row > 1.

 

 

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

@amitchandak  I found the double code... you was right....

Thank you very much.

 

Hi Amitchandak,

I tried to find null/blank value, but I didn't find any row, I tried too to find a duplicated code but there aren't.

I really don't know if the problem is some special caracter on the code that give this error evaluation on powerbi side, on SQL side I didn't find a double code and can manage the join 1 to many, but I want to find a solution of this issue on PowerBi....

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Users online (13,933)