Sum a number of row values by bulk actions

Can I sum a number of values that I select using a bulk action, and copy the same to another sheet?

I believe that the action type “Execute an action on a set of rows” is needed to be used.

First the original action, the values are copied from the original table and copied to a new table, where the ‘referenced’ action sums the values from the newly rows.

Am I at all on the right track?

Solved Solved
0 21 2,390
1 ACCEPTED SOLUTION

Thanks!

Let’s start with the yellow triangles. A yellow triangle means the column’s value for the row does not match the key column value of a row in the referenced table. For instance, this:

2X_7_7ff3a44ab7629420be261c4be67d74bf11401f31.png

tells us that Halder Traders does not occur in the key column of the User bill submissions table. It’s the AppSheet equivalent to a 404 - Page not found error on the internet.

Similarly:

2X_4_4373e219154ce9485688c4adf2403413e1c54a69.png

tells me GST/91/2019-20 and GST/90/2019-20 are not key column values in the User bill submissions table.

Looking at the User bill submissions table column list (thanks for including this!), I see the key column is named Key:

2X_6_6a1658b721ca6b8dcaaa327461f0f355e0aef0ff.png

It appears to me you want the user to select a supplier name, then choose one or more bill numbers from the bill numbers for the chosen supplier only, omitting bill numbers for other suppliers. My proposal for this as follows:

  1. Change the type of the Supplier Name column of the Supplier Payment Form table to Ref with the same referenced table. This column doesn’t really need to be an Enum.

  2. Remove the Valid If expression for the Supplier Name column of the Supplier Payment Form table. AppSheet should automatically generate a reasonable dropdown list.

  3. Change the type of the Bill number column of the Supplier Payment Form table to Text, matching the type of the Bill number column in the User bill submissions table.

  4. Remove the Valid If expression for the Bill number column of the Supplier Payment Form table. The AppSheet dependent dropdown feature should automatically generate a reasonably-filtered dropdown of bill numbers once the supplier name is chosen. If not, you can instead use this as the Valid If expression:

    SELECT(
      User bill submissions[Bill Number],
      ([_THISROW].[Supplier Name] = [Supplier_Name])
    )
    
  5. Change the type of the Bill amount column of the Supplier Payment Form table to Price to match the type of the Bill value column of the User bill submissions table.

  6. Replace the existing expression for the Bill amount column of the Supplier Payment Form table with this:

    SUM(
      SELECT(
        User bill submissions[Bill Value],
        IN([Bill Number], [_THISROW].[Bill number])
      )
    )
    
  7. Let me know what happens.

View solution in original post

21 REPLIES 21
Top Labels in this Space