So I am trying to produce a file in Power Query using two tables. There is a problem that I am facing
1. Table 2 has set dates for a fee schedule and Table 1 shows an effective date of 7/15. I got the 8/31/2022 and 9/18/2022 Dates in, but I also need to get the 7/13 date also as 7/15 will be after 7/13, but I don't need anything before 7/13. I am producing this file and importing it into another program.
1. Table 2 has set dates for a fee schedule and Table 1 shows an effective date of 7/15. I got the 8/31/2022 and 9/18/2022 Dates in, but I also need to get the 7/13 date also as 7/15 will be after 7/13, but I don't need anything before 7/13. I am producing this file and importing it into another program.
Book3 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Table 1 | ||||||
2 | FSC | Effective Date | CPT | Modifier | Price | ||
3 | 557 | 7/15/2022 | 36590 | 398 | |||
4 | 36590 | 26 | 319 | ||||
5 | 36590 | TC | 79 | ||||
6 | |||||||
7 | Table 2 | ||||||
8 | FEE SCHEDULE ID | FEE SCHEDULE NAME | Start Date | ||||
9 | 557 | FSC Name | 6/1/2021 | ||||
10 | 557 | FSC Name | 10/1/2021 | ||||
11 | 557 | FSC Name | 1/1/2022 | ||||
12 | 557 | FSC Name | 5/2/2022 | ||||
13 | 557 | FSC Name | 7/1/2022 | ||||
14 | 557 | FSC Name | 7/13/2022 | ||||
15 | 557 | FSC Name | 8/31/2022 | ||||
16 | 557 | FSC Name | 9/18/2022 | ||||
17 | |||||||
18 | Table I am getting | ||||||
19 | FEE SCHEDULE ID | Start Date | CPT | Modifier | Price | ||
20 | 557 | 8/31/2022 | 36590 | 398 | |||
21 | 557 | 8/31/2022 | 36590 | 26 | 319 | ||
22 | 557 | 8/31/2022 | 36590 | TC | 79 | ||
23 | 557 | 9/18/2022 | 36590 | 398 | |||
24 | 557 | 9/18/2022 | 36590 | 26 | 319 | ||
25 | 557 | 9/18/2022 | 36590 | TC | 79 | ||
26 | |||||||
27 | Result that I want | ||||||
28 | FEE SCHEDULE ID | Start Date | CPT | Modifier | Price | ||
29 | 557 | 7/13/2022 | 36590 | 398 | |||
30 | 36590 | 26 | 319 | ||||
31 | 36590 | TC | 79 | ||||
32 | 557 | 8/31/2022 | 36590 | 398 | |||
33 | 36590 | 26 | 319 | ||||
34 | 36590 | TC | 79 | ||||
35 | 557 | 9/18/2022 | 36590 | 398 | |||
36 | 36590 | 26 | 319 | ||||
37 | 36590 | TC | 79 | ||||
Sheet1 |