Forum Discussion
Creating a new table with a calculated column by joining two tables depending on the match
The join via Line Segment and Track Number is not possible. You have duplicates in both tables. You need a unique value in both table. How should Power BI decide what belongs together?
- Money3 years ago
Helper I
andhiii079845 In both the table that 2 columns are the only match column then thor table is the left table and we are using left outer join later we are doing some business logic calculation to avoid the duplicates but we are not getting expected result. Sharing screenshot for your reference from actual data. red box are duplicates value. one Thor ID should match with one CWR ID.
- andhiii0798453 years ago
Solution Sage
How should one Thor ID match one CWR ID?
- Money3 years ago
Helper I
Based on this condition
1. Requires same LS & Track Number
Mp range = Thor mp - cwr mp
2. Defines a Tight MP range -0.01 to 0.03 was recommended
3. Defines a Loose MP range 0.1 to 0.2 was recommended
4. Preferred to match with same rail ( thor rail = cwr rail ) within the loose MP range, but would match with opposite rail if there was no other joint around