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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

merge data with 3 columns and list result

Hi team,

 

I have been trying to solve the below but for some reason, I cannot find a way...any help would be of great help. Attached is a sample workbook for reference. The workbook has the following, the first table has products with a combination of products, these are combinations that are not allowed when a new product is requested. 

 

Table 1:

Product 1Product 2
ABCDEF
ABCGHI
ABCJKL
DEFZYX
DEFMNO
ZYXABC
ZYXJKL
ZYXDEF

 

The 2nd table includes sales person and their products for which they are responsible to sell.

 

Table 2:

Sales PersonProducts
John DoeDEF
John DoeGHI
John DoeMNO

 

There would be a form where a sales rep can request a new product to be included in his / her catalog, The check that is required to be perform is to verify if the products already in the catalog i.e., table 2 and the newly requested is a combination that is not part of the combination in table 1. If the product requested is a combination from table 1 after looking in to the existing values, then it should be denied else output should be granted. 

 

Following is a sample of the table with output.

 

Input by user(s)Output
RequestorRequested Product 
John DoeABCDenied

 

The output result is denied as the requested Product ABC with combination DEF which is already part of the user catalog in table 2 is not a valid combination. Any suggestion, help will be of great help here.

 

Regards,

A!

 

https://1drv.ms/u/s!Aj7kf6Fnqc5SyTIwwHjuCtcHIRJT?e=XT7LtZ

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , you might want to try this solution (attached file)

Untitled.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @CNENFRNL ,

Thank you for having this resolved for me. The output of the results are as expected and it works like a charm. The only thing that I have as an issue is that the list for me is exhaustive for each product with more than 80 + combinations and the results take approximately 2 minutes to list down values. Having said this, for now this should help.

 

Thanks a ton.

 

Regards,

A!

CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , you might want to try this solution (attached file)

Untitled.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors