Please help me find the solution to this Appsheet formula problem I am facing.
I’ve two columns with the same expression:
IF([AM]=“”,“”,IF([AM]=“Over”,TOTALHOURS([Work From]-[Clock In]),IF([Execuse AM Value]>TOTALHOURS([Clock In]-[Work From]),“”,(TOTALHOURS([Clock In]-[Work From])-[Execuse AM Value]))))
one of the columns is normal from the spreadsheet and the other one is virtual
The problem here is
when I test the expression in each column i have a correct result in the expression result and the virtual column but I have 0 in the normal column
Please help me find the solution to this Appsheet formula problem I am facing.
Check the column definition to make sure there are no settings that would cause rounding or truncation to occur.
For your normal column, is the expression in the App Formula property? If it is in Initial Value, it is only executed when the row is first added and never again.
Have you checked the sheet for actual value saved there?
When you state:
Khaled_Ibrahim:
I make my changes throw the form
…are you making the changes in the same Form for the row where the column “AM Late/Over” exists and is the column included? For example, if the Form operates on a Slice but the slice does not include the column, the App Formula will not fire for that column.
Hmm, I am wondering if you might be impacted by a known issue where the server computes differently than the client/UI side of things. Virtual Columns are computed on the server while your “normal” columns’ App Formula will be computed on the client/UI side.
AppSheet introduced a feature where the server and client use “consistent” computation methods. Check the setting shown in the image below. If it is not already set to “Consistent”, change the setting and try again to see if that fixes it.
Find an existing row with a blank value in the real column with the App formula, open that row in a form view, make no changes in the form, then click Save. Does the real column with the App formula get a value?