Hi @Jason_Spicer,
I found the requirement given by you close to practical needs a user will have when creating new orders, and hence tried to work on it. Hope this helps. Apologies for a long post below.
You may wish to try the following after copying the sample App āOrder Captureā
available on the AppSheet website.
In the Order Details table ,please add following 3 virtual columns
- [OrderProduct]Type Text. This column basically concatenates the Order ID and Product ID as this is a unique combination for repeating a product within the same order (ID)
The App formula for this column [ProductOrder] is =CONCATENATE([Product ID],[Order ID]) --------------------------------------------------------------------------------- 2) [Repeat Items Price} Type Price. This column adds up prices whenever the combination of Order ID and Product ID repeats
Please include show_if constraint for this column as =COUNT(SELECT(Order Details[OrderProduct],[OrderProduct]=[_THISROW].[OrderProduct]))>1
Please include
App formula for this column as
=SUM(SELECT(Order Details[Total],[OrderProduct]=[_THISROW].[OrderProduct])) -------------------------------------------------------------------- 3) [Repeat Items Quantity] Type number. This column adds up quantities whenever the combination of Order ID and Product ID repeats
Please include Show_If constraint as
=COUNT(SELECT(Order Details[OrderProduct],[OrderProduct]=[_THISROW].[OrderProduct]))>1
Please include App formula as
=SUM(SELECT(Order Details[Quantity],[OrderProduct]=[_THISROW].[OrderProduct])) ------------------------------------------------------------------------- 4) In the UX-> Views , go to System views. Under Order Details Table , go to Order Details_Inline view 'Please include āRepeat Items Quantityā column under group by option ---------------------------------------------------------------------------------- The above modifications will help you to see the repeated products by quantity under the same Order ID. Please refer to the attached image.
Hope this helps. May be there is a more efficient way but this one can probably help in triggering thought process in that direction.