Forum Discussion
Conditional joins
- Anonymous4 years ago
Hi Kenneth_37 ,
Check the following steps in Power Query Editor.
Step1# Inner join merge table1 and table2 with [Ward] and expand tables.
Step2# Create a custom column with below query:
Column = if [Table2.Date] >= [StartDate] and [Table2.Date] <= [EndDate] then 1 else 0Step3# Filter table with column = 1.
Result would be shown as below:
Then you can delete and rename the rows if you need.
Pbix as attached.
Best Regards,
Jay
Hi Kenneth_37 ,
Check the following steps in Power Query Editor.
Step1# Inner join merge table1 and table2 with [Ward] and expand tables.
Step2# Create a custom column with below query:
Column = if [Table2.Date] >= [StartDate] and [Table2.Date] <= [EndDate] then 1 else 0
Step3# Filter table with column = 1.
Result would be shown as below:
Then you can delete and rename the rows if you need.
Pbix as attached.
Best Regards,
Jay
Thank you! I think this might just work. I'm still working through it and will report back.