Forum Discussion
Column with Duplicate Dates
Hello,
I have a report created with the following columns.
Report Date
Facility Code
Value Date
Outstanding Amount
Due Date
Due Date Final (New Column)
I am trying to create a formula in the "Due Date Final" column where it pulls the due date only once.
Currently, the due date pulls into every row. I want it to pull into the row which contains the latest value date of the Facility Code by Report Date.
Please note, there is a slicer added the visual which is the "Report Date" column. We filter the report by Report Date.
| Report Date | Facility Code | Value Date | Outstanding Amount | Due Date | Due Date Final |
| 11/7/2025 | 74581 | 7/1/2025 | (359,013.21) | 10/26/2027 | |
| 11/7/2025 | 74581 | 9/19/2025 | (4,700,000.00) | 10/26/2027 | |
| 11/7/2025 | 74581 | 9/29/2025 | (8,000,000.00) | 10/26/2027 | |
| 11/7/2025 | 74581 | 10/1/2025 | (238,223.29) | 10/26/2027 | |
| 11/7/2025 | 74581 | 10/14/2025 | (100,000.00) | 10/26/2027 | 10/26/2027 |
Hi gmasta1129,
You can do this with a DAX expression that only returns the Due Date on the row with the latest Value Date.
Calculated column:
Due Date Final = VAR MaxValueDate = CALCULATE ( MAX ( 'YourTable'[Value Date] ), ALLEXCEPT ( 'YourTable', 'YourTable'[Report Date], 'YourTable'[Facility Code] ) ) RETURN IF ( 'YourTable'[Value Date] = MaxValueDate, 'YourTable'[Due Date], BLANK () )Here's a link to a working file: https://drive.google.com/file/d/1yiOzEV_mh5jesxaYQkeYUnbTgxKxlNhS/view?usp=sharing
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.
1 Reply
- tayloramySuper User
Hi gmasta1129,
You can do this with a DAX expression that only returns the Due Date on the row with the latest Value Date.
Calculated column:
Due Date Final = VAR MaxValueDate = CALCULATE ( MAX ( 'YourTable'[Value Date] ), ALLEXCEPT ( 'YourTable', 'YourTable'[Report Date], 'YourTable'[Facility Code] ) ) RETURN IF ( 'YourTable'[Value Date] = MaxValueDate, 'YourTable'[Due Date], BLANK () )Here's a link to a working file: https://drive.google.com/file/d/1yiOzEV_mh5jesxaYQkeYUnbTgxKxlNhS/view?usp=sharing
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.