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
Danielecc
Helper II
Helper II

How to get a single and multiple match between two tables

Hi everyone,

 

I want to get a single/multiple match between two tables (Table 1 is a calculate table), and the result expected is a New calculated table. Tables are not related.

 

Danielecc_0-1653917294826.png

 

I need to get if "Table 1" match with "Table 2" . Table 2 could have until 5 mix, but actually the maximun mix I have are three. 

 

I will paste in text mode the data:

 

Table 1:

USERSMIX
Employee1Caso1
Employee1Caso2
Employee1Caso6
Employee1Caso4
Employee1Caso9
Employee1Caso10
Employee1Caso11
Employee2Caso5
Employee2Caso2
Employee2Caso6
Employee2Caso4
Employee2Caso7
Employee2Caso3
Employee3Caso1
Employee3Caso6
Employee3Caso3
Employee3Caso8
Employee3Caso9
Employee3Caso10
Employee4Caso3
Employee4Caso4
Employee4Caso7
Employee4Caso8
Employee4Caso10
Employee4Caso11

 

 

Table 2:

 

IMPACTOMix1Mix2Mix3Mix4Mix5
Critical1Caso1    
Critical2Caso5    
Critical3Caso2    
Critical4Caso6Caso3   
Critical5Caso6Caso4   
Critical6Caso7Caso3   
Critical7Caso8Caso9Caso10  
Critical8Caso8Caso10Caso11  
Critical9Caso9Caso10Caso11  

 

Thanks a lot for your help and best regards...

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Danielecc ,

 

You can do this on Power Query. Do the following steps:

  • Add new blank query that refers to table 1
  • Add a new step and refer to table 2
  • Select the Impact column and unpivot other columns
  • Filter the blank values
  • Remove the attribute column
  • Do a merger of the two table referincing the Source step and the Remove columns
  • Do the expand of the table by the max of the IMPACT.
  • Remove duplicates

See result below and in attach PBIX file

MFelix_0-1654160666542.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
Danielecc
Helper II
Helper II

Hi Miguel, and thanks for your answer.

 

My "table 1" is a calculate table, then I can't do that. BUT I solve the problem doing a change of distribution on "Table 2".

 

I will accept as solution your answer cause must work with "no calculate tables.

 

Best regards

Hi Danielecc,

 

Do you mind explaining how you achieved this?

MFelix
Super User
Super User

Hi @Danielecc ,

 

You can do this on Power Query. Do the following steps:

  • Add new blank query that refers to table 1
  • Add a new step and refer to table 2
  • Select the Impact column and unpivot other columns
  • Filter the blank values
  • Remove the attribute column
  • Do a merger of the two table referincing the Source step and the Remove columns
  • Do the expand of the table by the max of the IMPACT.
  • Remove duplicates

See result below and in attach PBIX file

MFelix_0-1654160666542.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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