Forum Discussion

Alpha427's avatar
Alpha427
Frequent Visitor
8 years ago

Join table with several columns and condition

Hello everyone,

 

I am facing a special case with Power BI Desktop.

Here is the situation, I have two tables with some columns :

 

+--------------+                +--------------+
|                         |                |                        |
|                         |                |                        |
|    TableA           |                |    TableB          |
|                         |                |                        |
|                         |                |                        |
|                         |                |                        |
++-------------+               ++-------------+
 |                                           |
 +---+columnA                    +--+columnA
 |                                           |
 +---|columnB                      +--+columnDate
 |                                           |
 +---|columnC                     +--+column...
 |
 +---+column...

 

 

I want to create a relation between these two tables, with this condition :

 

TableA.columnA = TableB.columnA and TableB.columnDate between TableA.columnB and TableA.columnC

 

 

I am a beginner on Power BI and I have no idea of how to do this..

 

Could you help me ?

 

 

4 Replies