Forum Discussion

abrother's avatar
abrother
Frequent Visitor
2 years ago

SKU Price Based on Customer

Hi all, first time posting to the forum. I've been trying to find an answer to this, but for whatever reason I just can't seem to find anything, maybe I'm not searching for the right keywords.

 

I have a table that shows me for each SKU how many units were made (Excel table) and I have another Excel table that has the ASP for each SKU, however some of the SKUs have different prices based on the customer. What I need is a way to create a new column in the first table that pulls in the correct ASP for that SKU based on the customer. For some reason the relationships between the tables aren't working the way I want them to. Below is what I mean:

Table 1:

SKUSerial NumberDate Produced
12345ABC1231-Jun-24
45678ABC1241-Jun-24

 

Table 2:

SKUCustomerASP
12345Acme$10
12345Cobalt$12
45678Acme$15
45678Cobalt$18

 

Table 1 Modified:

SKUSerial NumberDate ProducedASP (Based on Customer)
12345ABC1231-Jun-24$10
45678ABC1241-Jun-24$18

 

Thanks in advance for any help.

3 Replies

  •  //Try this & I am assuming that there is a relationship between Table 1 and Table 2 based on SKU
    ASP =
    LOOKUPVALUE(
        'Table 2'[ASP],
        'Table 2'[SKU], 'Table 1'[SKU],
        'Table 2'[Customer], 'Table 1'[Customer]
    )
    
    • abrother's avatar
      abrother
      Frequent Visitor

      Thanks very much for the quick response. There is a relationship between the tables based on the SKU, however it's many to many as there's multiple values for each SKU. With the solution you posted the challenge is that Table 1 doesn't have the Customer listed so I'm not sure how that final value in the formula would work. Now that I think about it I won't be able to do what I want to do without having the Customer in table 1, that's the issue. If I can get that figured out then your solution should work.

       

      Thanks very much for the help!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, abrother 

    Thanks for mh2587 reply, I don't think your current two tables are accurately capturing the ASP (Based on Customer), you need to rethink what data you need to add to achieve the logic you are looking for.

    Best Regards,
    Yang
    Community Support Team