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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
keerthraj
New Member

Unique value combinations of 2 columns from different tables

Hi Team,

 

I have 2 tables that consists of product type information.  

 

Table 1 contains the field "Product Type". Table 2 has the field "Product Bought Together".  "Frequency Bought Together" is a DAX measure that shows the numer of times products from column 1 is bought with products from column 2. 

 

But, as you can see in the table, the product combinations appear in duplicates. E.g. Product 5 & Product 9 on row 1, and Product 9 & Product 5 on row 2, where both the rows have one unique combination of the products with a unique frequency value.

 

I just want to display the top 5 unique product combinations, instead of them appearing twice. Is there a way to do this using DAX? 

Product Combination.JPG

 

Appreciate your help on this. Thank you.

 

Regards,

Keerthana

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@keerthraj , I think you need Market Basket Analysis. Refer

https://www.mssqltips.com/sqlservertip/5428/market-basket-analysis-in-r-and-power-bi/

https://businessintelligist.com/2017/03/27/market-basket-analysis-using-power-bi/

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

2 REPLIES 2
amitchandak
Super User
Super User

@keerthraj , I think you need Market Basket Analysis. Refer

https://www.mssqltips.com/sqlservertip/5428/market-basket-analysis-in-r-and-power-bi/

https://businessintelligist.com/2017/03/27/market-basket-analysis-using-power-bi/

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

Hi @amitchandak ,

 

Thank you for your response. Yes, this would solve the issues I believe.

 

Regards,

Keerthana

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors