Hello, Wondering if there's a way to LOOKUP...

Jenn_M
New Member

Hello,

Wondering if thereโ€™s a way to LOOKUP with only partially matched results? For example, I have a table with 2 columns: MODEL NUMBER | PRICE.

Iโ€™d like to pull the price data into another table column if the first four of that columnโ€™s text string match with the first four of MODEL NUMBER text string.

I assume the LOOKUP expression can be used, but Iโ€™m not sure if there is a simple way to accomplish it.

Thanks.

0 4 382
4 REPLIES 4

Jenn_M
New Member

@Aleksi_Alkio

Thanks. I implemented the following formula which returns with โ€œORDERBY does not have a valid inputโ€. TOP(ORDERBY(SELECT(Products[Price],[Model]=[_THISROW].[Shirt Model]), Model, FALSE), 4)

Thatโ€™s alright though-- if this is not an easy method, Iโ€™ll just create another column to enter additional text values to the model if it exceeds over 4 values.

You could try to use syntaxโ€ฆ TOP(ORDERBY(SELECT(โ€ฆ,4)

You can use ORDERBY only with the key columnโ€ฆ for example with the

ref field.

Jenn_M
New Member

Ah, got it. Thanks.

Top Labels in this Space