Oooh lords of appsheet! please listen the pray of this humble noob!
- I have a table where I record all orders from my customers at my ice cream parlor. The order types have a standard format with standard flavors, which makes them easy to handle. However, I am having a problem with a specific column, the “Toppings” column.
In this column, I want to be able to indicate which toppings were included, along with their respective specific flavors and quantities, so that in a second column, called “Total Toppings,” I can add up the price of each one multiplied by its quantity, taking into account the types and values.
Apart from this, I have two more tables: 2. The “Flavors” table, where I have:
unique_id column | product column | flavor column
In the first column, a unique id, in the second the product (both standard and toppings), and in the third, the flavors of each one. Therefore, there is repetition of the same product in consecutive rows for each different flavor.
-
And a second table, where I have:
unique_id column | category column | product column | value column
In the first column, also a unique id, in the second the category to which it belongs, “topping,” in the third, the products of the various categories (standard and toppings), and in the fourth, the value of each one.
Therefore, with regard to the column in that first table, we have the products from the second table, filtered by the category column where the term “topping” appears. From there, we have to indicate the quantities of each topping, if any, with their respective flavors, referring to the flavor column of the third table, filtered by the product column of that same second table according to the selected toppings. Finally, in the second column of that first table, we calculate the result of multiplying the quantities of each topping by their respective values in the third table.
It’s an odyssey, ladies and gentlemen.
I count on your infinite wisdom. Greetings…