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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.