The column XXXX either doesn't exist or doesn't have a relationship to any table available in the current context.

Badrul

New Member
Joined
Sep 25, 2013
Messages
28
I did a search on this error message on this forum but am surprised to find no one has provided a clear or any answer from what I can see.

It's very simple. I have two tables that are related together using an numeric ID field. All good.
Table A is the "one" side of the one to many relationship and Table B is the many side.

Table B contains one or more invoice date(s) that table A is after.

So I think simple, add a calculated column:
=CALCULATE(Min(Invoice[InvoiceDate]))

However that returns blank for some rows that ought to have values and incorrect dates for others.

So then I tried:
=RELATED(Invoice[InvoiceDate])

But this gives:
The column Invoice[InvoiceDate] either doesn't exist or doesn't have a relationship to any table available in the current context.

Anyone know the answer to this?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What are you trying to do? What do you mean "table B contains one or more invoice dates that table A is after"?
What are you expecting the calculate formula will give you, which of the 2 tables are you placing it in? You mention a table called "Invoice" but you said your tables were Table A and Table B. So it is hard to work out what you are trying to do, and why.

Assuming TableA is on the one side, and it is called TableA. And assuming you are adding a new column in TableB, and assuming there is a column in TableA called [InvoiceDate], then you can write a calc column in TableB as follows
=related(tableA[InvoiceDate]
 
Upvote 0

Forum statistics

Threads
1,215,637
Messages
6,125,964
Members
449,276
Latest member
surendra75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top