Determine a lookup key or match for another table

I am not sure if this is a DAX or Power Query matter.

I have a price file and a product file in an ERP system.

The price file has at least 4 columns.

Category / Sub-Category / Product Group / Product

For each combination there are several types of price e.g. Price1 , Price 2 etc.

The problem I have is that any of these 4 columns can be wild carded, so I don’t have to specify a price for every product in the product file.combination.

  1. Category1 / SubCategory1 / Product Group1 / Product £10.99
  2. Category1 / SubCategory1 / * / * £15.99

So any product in the product file that matches line 1 will be charged at £10.99 and any products that match line 2 will be £15.99.

My problem is the product file will always use the 4 columns. So when I am looking up a price, how do I determine the lookup key to use?

From what I can see I will have to try multiple combinations to find a match.

Is there an elegant way to do this?

I should have posted this to make my problem clearer.
Sorry.

Thank you.

Hi @kellysolutions,

While waiting for the community to review and respond to your issue, take advantage of Data Mentor . It offers a wealth of tools and resources that could provide immediate solutions and enhance your report-building efficiency.

Suggested link: https://mentor.enterprisedna.co/explain-simply

Cheers,

Enterprise DNA Support Team