Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I need to create a new column in my data showing the due date for items however some of my items have a due date where the value of the due date is in a seperate table. In the original table there is no date and instead an identifier is shown and the other table shows the value (Date) of that identifier.
Below is a sample of the data. Can anyone advise on the formula required to create a new column in Table A with all the due dates?
Table A
Item | Serial Number | Instance |
1 | A-004 | 18/10/2024 |
2 | A-006 | 25/02/2026 |
3 | A-001 | A |
4 | A-002 | A |
5 | A-001 | B |
6 | A-001 | A |
7 | A-002 | B |
8 | A-002 | A |
9 | A-002 | B |
Table B
Serial Number | Instance | Date |
A-001 | A | 31/01/2024 |
A-001 | B | 31/01/2025 |
A-001 | C | 31/01/2026 |
A-002 | A | 15/06/2024 |
A-002 | B | 20/08/2025 |
A-002 | C | 31/01/2026 |
Solved! Go to Solution.
Hi,
Write this calculated column formula in Table1
Column = CALCULATE(MAX(Table2[Date]),FILTER(Table2,Table2[Serial Number]=EARLIER(Table1[Serial Number])&&Table2[Instance]=EARLIER(Table1[Instance])))
Hope this helps.
Hi,
Write this calculated column formula in Table1
Column = CALCULATE(MAX(Table2[Date]),FILTER(Table2,Table2[Serial Number]=EARLIER(Table1[Serial Number])&&Table2[Instance]=EARLIER(Table1[Instance])))
Hope this helps.
Thank you! That worked.
You are welcome.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |