Showing results for 
Search instead for 
Did you mean: 
ToddMate Regular Visitor
Regular Visitor

Look up value from Table A and then look between two values in Table B



I am trying to look up a postcode value from the "Accounts & Services" table, and then look into the "ExpressPost" table searching the postcode where it falls on or between the "Postcode Start" and "Postcode End" columns and then return the delivery ETA

This works, however it only returns a value where the postcode from the Accounts and Services table matches the postcodestart value .. all others return a blank value.


ExpressPost = CALCULATE(VALUES(ExpressPost[deliveryeta]),FILTER(expresspost,expresspost[postcodestart]>='Accounts & Services'[Postcode] && expresspost[postcodeend] <= 'Accounts & Services'[Postcode]))

Can anyone assist me with where i am going wrong?
v-lionel-msft Senior Member
Senior Member

Re: Look up value from Table A and then look between two values in Table B

Hi @ToddMate ,

Is the data table you have like this?

A&S table:

ExpressPost table:

As you can see , i don't  know the relationship between two tables,

So , you can give me a sample data model, and it's better to give me the expected result.


Best regards,
Lionel Chen


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)