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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
PhilSmith
Helper III
Helper III

Many to Many my only option with one table created by Distinct

I have a sales table, (many duplicates,) and I am trying to create a One to Many relationship with CustomerBrandCatActive.  This table will ultimately be a bridge.  There are no other relationships connected to CustomerBrandCatActive.

CustomerBrandCatActive = DISTINCT(filter(CustomerBrandCat,CustomerBrandCat[Active]<>"N"))
Distinct means no duplicates, and I have verifed there are no duplicates.  Yet, many to many is the only option BI will give me.
What makes it think this is not a table of unique values?  How can I fix this?
 
Thanx
Phil
 
 
 
 
 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your CustomerBrandCat table looks like, but please try the below.

Or, please share your sample pbix file.

 

 

CustomerBrandCatActive =
DISTINCT (
CALCULATETABLE (
SUMMARIZE ( CustomerBrandCat, CustomerBrandCat[Active] ),
FILTER ( CustomerBrandCat, CustomerBrandCat[Active] <> "N" )
)
)


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
PhilSmith
Helper III
Helper III

Thank you.   This works.  I would love to know why it works though.  The results in the table are are different, by about 40 records.  The results are too big to export, so I can't just compare what is being returned by each option.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your CustomerBrandCat table looks like, but please try the below.

Or, please share your sample pbix file.

 

 

CustomerBrandCatActive =
DISTINCT (
CALCULATETABLE (
SUMMARIZE ( CustomerBrandCat, CustomerBrandCat[Active] ),
FILTER ( CustomerBrandCat, CustomerBrandCat[Active] <> "N" )
)
)


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.