Can i add a virtual column to get the total number of items ([category]) in my table?
I have a table - “Utilization Report”
In this table i get data that changes every minute:
[Category] - Type of item i.e. - pump
[Sub category] - Description of that item
[Total inventory] - this changes during the day as customers rent items
[Total out] - changes accordingly
[Total on Hand] - changes accordingly
My question is - how do i get a total of the column - [category]? I want to know how many pumps there are total, out, on hand. I know i can “count” in group aggregate for a table view. But i want a view to look like this:
Total Inventory | Total Out | Total On Hand
Pumps 100 | 30 | 70
4" pump 50 | 40 | 10
6" pump 25 | 20 | 5
I added this 3xpression bit it seems to error my app out. I think there are too many rows in my table - over 16,000. Should I just try and do something in the table, instead of this app?
Hi Tiger, you could also use SUMIF/SUMIFS expressions in your spreadsheet (assuming that’s what you are using) to calculate the inventory amount and use Appsheet as the data collector and UI for reporting back inventory numbers.
Oh im sorry- yes its the only virtual column, so far. I will need a few others. Problem i am having here is this. My data table does NOT total anything. So i need totals.
Example:
Generator Totals
Pump totals
etc…
I also need branch (site) totals per item:
Beaumont has 100 pumps
Beaumont has 50 generators
etc…
So assuming the Utilization Report table is the table with this virtual column. The table has 16,000 rows. The app formula for the virtual column does a SELECT() against the Utilization Report table itself. That SELECT() examines every one of the 16,000 rows of the table. The app formula is evaluated for every row of the table. This means that for every row of the table, every row of the table is scanned. App formula evaluated for 16,000 rows, each scanning 16,000 rows. 16,000 x 16,000. 256,000,000 rows visited. 256 MILLION row visits for this ONE column.
This is why your sync is taking too long.
Every additional total you calculate this way multiplies the total by another 16,000.
Ideally, each (branch, item) pair would have its own row in another table and the totals would be computed there. That alone would be a huge improvement. Can you see a path to structuring your app that way?
I could create an excel table to get that info - however the original changes data every minute. So i would have to have it also update every minute? Also, can i have one excel spreadsheet send data to another?