Hey,
In a simplified situation I have two tables, with the following fields
Table1 CustomerID Date Price
Table2 CustomerID StartDate EndDate customertype
I want to combine the Price from Table1 with the customerType in Table2 if the customerID's in the two tables are corresponding and if the date in Table1 is between StartDate and EndDate of Table2. How can I do this in PowerBI?
In SQL I can do this in a statement like
Select Table1.Price, Table2.customerType from Table1 inner join Table2 on Table1.CustomerID = Table2.CustomerID and Table1.Date >= Table2.StartDate and Table1.Date <= Table2.Enddate
Thanks in advance for any idea.
Eddy