In my attempt to optimize my apps , today I replaced some spreasheet formula with an appsheet action button, to write in a parent column the sum of a child table column (set values in this row) , something like
I’m intrigued too. It happened to me once before , but that time I was using the filter all rows option, so they were filtered out before the action triggered
@WillowMobileSystems this is related to what you were asking in that thread the other day, although still no solid answer.
This might be what I was thinking of - usage of “Related” columns. The post you mention was about the similar shorthand for tables.
I have had instances where referencing related columns (like in the SUM above) didn’t work in very complex expressions. What I did instead of a whole other SELECT(), was to assign a virtual column to the shorthand expression. For instance, in the SUM expression above I would do this:
New Virtual Column = [RefColToChild][ChildQuantity]
Then I would write the summation as SUM([New Virtual Column])
Still, it’s the simplest expression, so in theory the VC should not be needed
Agreed!!
OptimiX_XcrY:
My end goal being speeding up
Be careful on how you analyze which is faster in this particular use case - VC or SELECT(). It will depend on where the SUM happens and how big the table is.