cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ValeriaBreve
Post Patron
Post Patron

join based on conditions

Hello,

I would like to join 2 tables based on certain conditions.

Ex. is below - I would like to jojn the first to second table based on:

Col1/Col4 ONLY if Col5 is empty

Col1 and Col2/Col4 and Col5 if Col6 is empty

all Col1, 2 and 3 /Col 4,5 and 6 if  the latter are populated.

 

How would you do it? I have not found a good way to do such a "conditional" join....

Thanks!

Kind regards

Valeria

 

 

Col1Col2Col3  Col4Col5Col6Result
AFG  A  result1
BTY  B  result2
CGD  CGDresult3
DH   DH result4
         
         
         
Final Table       
         
Col1Col2Col3Result     
AFGresult1     
BTYresult2     
CGDresult3     
DH result4     
         
1 ACCEPTED SOLUTION
RocketRod
Frequent Visitor
2 REPLIES 2
RocketRod
Frequent Visitor

thanks!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors