This will count the number of other rows with the same [CODE] but only put the sum total in the row with the highest [_RowNumber]. Since we only want to pull in one row per [CODE]
Hello Simon,
Thank you very much for your help.
I changed the formula and created the virtual column.
But I think I’m doing something wrong. The expression assistant displays the following error: “TOP has invalid inputs”
“Make a list of all the rows which the same CODE as this row. If this row has the highest row number out of that list then Count how many rows with this code there are (including this row) and put that number here. If this row hasn’t got the highest row number then the number is 0”
Ideally, you’d have a separate table where the Code values occur only once each, then you could use that with your Start expression. The solutions @1minManager has suggested are all extremely inefficient, but unfortunately the only way to approach the problem without adding tables.
Hi Steve - could you explain the concept of creating separate tables for summary data? Or is there a simper solution that has been developed recently?
I need to summarize several fields -
I have a Products table and an Order Details table. The fields in my order details table that I need to track are:
ProductName - product that is collected
Quantity collected - number of items (ProductName) that are collected
Weight - weight of items collected (total - one value for each record)
I want to summarize the:
total number of items (Quantity Collected) for each Product
total weight of items for each Product
So my report might look similar to this:
Product Collected Weight
BM8 13 18.5
PW23 10 46.3
etc.
Any help for an efficient solution would be appreciated .
It’s quite simple, actually. Create a new table for your summary report with virtual columns corresponding to the Product table columns you indicated: Product Name, Quantity collected, and Weight. Give each an App formula expression that computes the desired total.
I wanted to make one adjustment to the App Formulas - to limit the display according to a column in the Order Details table. I have a TRUE/FALSE column called Collected. I want to limit the display to those records that are FALSE. My app formula is:
And the last FALSE statement allows for duplicates - correct?
Yep: SELECT(..., ..., FALSE) explicitly tells SELECT() to provide the duplicate values, too. Putting FALSE in there is technically not needed, as including duplicates is the default behavior anyway.