References from Enum List

Hi!

We create smart warehouse applications.

There are tables:
products - here all information about our products (ProductId - Key, Photo, Name/Size/Color - name of product, Price and others)
Orders - OrderId - Key, Client - Ref to Clients, Products - EnumList Ref to Products, Price - here problem and others

One order can contain several items of products. We want to calculate the total cost of the order based on the Price column in the Products table, but from the articles we have read, we cannot yet understand how it is. Is it possible to create a field that will โ€œpullโ€ prices from the Products table and summarize it if there are several products in the order? At the same time, we want the value in the field to be editable? Can this be done?

Solved Solved
0 10 324
1 ACCEPTED SOLUTION

Youโ€™re using LOOKUP() wrong.

Try instead:

SUM(SELECT(products[Price], IN([Name/Size/Color],[_THISROW].[products])))

View solution in original post

10 REPLIES 10
Top Labels in this Space