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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
joshua1990
Post Prodigy
Post Prodigy

INNER JOIN with BETWEEN

Hi all!

I am trying to rebuild a SQL in Power BI as a data model.

I was able to rebuild all Left Joins but stucked by a INNER JOIN that has a BETWEEN statement:

INNER JOIN Table1 ON (Table2.ID =Table1.ID and Table2.ID2 between Table1.ID_A and Table1.ID_B)

 

How would you rebuild this in a DataModel?

 

1 REPLY 1
lucadelicio
Impactful Individual
Impactful Individual


Hi Joshua,
try to reference the Table1 and filter it with the value that you need (x > id_a and x < id_b) on the specific column
Use this result table to do the inner (function merge query) between the table2 and the new table1 filtered (that contains only the value between you want to do the inner).
If you can post the pbix i can do it for you.
Thank you
Luca D'Elicio



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.