Forum Discussion
Join Tables based on between clause
Hey Anonymous ,
how are you doing the join? Do you click it together in Power Query? Or do you load both tables and then try with DAX to get the desired table?
Why don't you just use the query as it is if it works. You can use the SQL statement and then load the data as you want them in your query:
- Anonymous5 years agoNot applicable
Thank you Denis for your response.
sql statement is not an option for me for different reasons.
Need to do this either using DAX or through merging/other options.For now, the Table1 is joined to time1 on time1.dt = Table1.del_date in data model relationships.
But i am stuck in having that second join Time2 as it is uses between clause.
I have the flexibility to have multiple time dim's to data model, or just get one but replicate the second via "New Table" option.
- daxer-almighty5 years ago
Solution Sage
It's simple: relationships in PBI are only based on equijoins. If you want something different, you have to either 1) use virtual relationships, i.e., created inside DAX measures using, for instance, TREATAS, or 2) you have to massage the raw data into a correct PBI data format using Power Query (or any external tool that will do the massaging).
In our case you could easily create a bridge table that would equi-join both tables but the net effect would be a non-equijoin.