MurrayBarn
New Member
- Joined
- May 27, 2012
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hi There
I have searched and searched for a solution but everything I have found is too complicated.
I have imported two tables into Power Pivot in Excel. Table1 has various bits of information including a transaction date. Table2 is a small table that has about ten years as line items with a column for startdate and another column for enddate and then some columns with data relating to that year such as Percentage etc.
I would like to add a Custom Column in Table1 that lookups the transaction date in Table1, finds the row in Table2 where the transaction date is >= startdate & <= enddate and returns a value from another column called Percenatge.
I would prefer the solution to be in the M Query but DAX could work too.
I have searched and searched for a solution but everything I have found is too complicated.
I have imported two tables into Power Pivot in Excel. Table1 has various bits of information including a transaction date. Table2 is a small table that has about ten years as line items with a column for startdate and another column for enddate and then some columns with data relating to that year such as Percentage etc.
I would like to add a Custom Column in Table1 that lookups the transaction date in Table1, finds the row in Table2 where the transaction date is >= startdate & <= enddate and returns a value from another column called Percenatge.
I would prefer the solution to be in the M Query but DAX could work too.