Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Due Date Calculation

I am looking for help in generating a due date for an invoice. I have two tables:

1. Terms Table

2. AP Register Table

Olga52_0-1626963656952.pngOlga52_1-1626963671422.png

Terms table is connected to the AP register table with a 1 to many relationship by the Vendor Number. 

I would like to create a new column called Due Date. I also have a column in the Terms table where I extracted the number from the terms. i.e. Net 10=10, Net 30=30, etc.

 

I wanted to use a DATEADD function, but when I pull up one table, the other one does not come up as an option using DAX. Please help.

 

Thank you!

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Is the test column in your screenshot the result of using RELATED?

I would check whether all your Vendor Nº in your 'AP register table' exist in your 'Terms table'.

Consider sharing your data or a sample of it for further troubleshooting. 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

3 REPLIES 3
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

To return a value from another table use RELATED.
E.g.: RELATED('Terms Table' [Your Column])

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Thank you so much, that helped a lot. I did not know about the RELATED function and have been struggling for a day or so. But now for some reason, I have another issue, where not every Invoice, received a new date. I have several that are blank. I had the same issue when I created a merged table of AP Register and Terms.  Here is an example:

Olga52_0-1626966965562.png

Thank you!

Olga

Hi @Anonymous ,

Is the test column in your screenshot the result of using RELATED?

I would check whether all your Vendor Nº in your 'AP register table' exist in your 'Terms table'.

Consider sharing your data or a sample of it for further troubleshooting. 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.