Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
syedsiraj10
Regular Visitor

creating relationship based on two or more columns

How we can create join based on range of date columns in powerbi

 

Eg: POSN_HIST JOIN TITLE ON POSN_HIST.TITLE_CD = TITLE.TITLE_CD AND TITLE.EFFECTIVE_DT <= POSN_HIST.EFFECTIVE_DT AND TITLE.EXPIRATION_DT >= POSN_HIST.EFFECTIVE_DT

 

Can someone please help me with the join condition logic we can use for creating the above join condition.

1 ACCEPTED SOLUTION
blom0344
Frequent Visitor

Looks like you need a non-equi join that is not supported by PowerBI (yet). Try to write a view against these object and load the result to PowerBI

View solution in original post

2 REPLIES 2
blom0344
Frequent Visitor

Looks like you need a non-equi join that is not supported by PowerBI (yet). Try to write a view against these object and load the result to PowerBI

blom0344
Frequent Visitor

In PowerBI there does not seem to be no support for non-equi joins, like the range join you are looking for. It is strictly  a  1:n  affair. But perhaps you solve this at the backend using a view and loading the view output as a dataset?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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