Help with nested/matrix sum/product expression?

Aurelien
Google Developer Expert
Google Developer Expert

Hi AppSheet Community,

I’m struggling with an expression, I don’t know how to make it.
I hope you will find out !

Situation:
I have basically an inventory app.
The particularity is that some items can be made of others.
For example :

  • window panes
  • shower kits, each made of 3 window panes and 2 taps

→ How to calculate the virtual total stock of window panes ?

Structure:

  • Products Table
  • LineItem_Pdt Table
    3X_5_b_5b64718238c162f18e20dff76d27ca2afbf2392e.png
  • AssemblyPart Table
    3X_c_f_cf5b804e39f047a5a3693caf02c450041e8f1c59.png

Visual example:
3X_8_4_84924bf44aa1b93e3a0e301f8dfab06b3c4ca2ec.png
3X_8_1_812ad8857c584dd668a6b69c270b9aab7aa90987.png

My first thought was to try a matrix product, but I didn’t find a way to do so with AppSheet. I assume I should use some additional virtual column, but I don’t see how.

Thank you in advance for your help, you expressions-masters !

1 11 570
11 REPLIES 11
Top Labels in this Space