IF statement (i'm missing something)

So iโ€™ve got a formula that if the Column is blank put in a zero, otherwise do nothing

I tried this and it doesnโ€™t work: IF(ISBLANK([Column]),0,"")
I also tried this: IF(ISBLANK([Column]),Number(0),"")

What am I missing?

0 10 592
10 REPLIES 10

This comes down to the data type:

2X_0_0b133b31a23e6e9319ffb1df7e97cdf697a2b9d1.png

Thereโ€™s a couple of ways to fix:

  • You could wrap the โ€œโ€ in Number("") - this forces the text value into a number (which becomes blank)
  • You could use IFS() instead of IF() - with IFS() you donโ€™t need to include the fall-back condition, you only include criteria-result pairs, the fallback is blank:

IFS(
ISBLANK([Column]), 0
)

Thanks for the suggestion, but it doesnโ€™t seem to work.

Iโ€™ve added the your IFS expression into the Formula filed, but I still donโ€™t see the vlaue of 0 being populated when its blank.

When I test the expression, i get the proper result.

You probably need to open the record and save it.

HI, sorry, Iโ€™m not sure it means to open the record and save it.

Yes, the app formula in a normal column is recalculated only when you open and save it.

Iโ€™ve hit Save and Verify multiple times, exited out of the account and got back in. It still doesnโ€™t update the value.

If you want a formula to constantly update itโ€™s calculated value, in other words to be a โ€œliveโ€ column, you need to make it a virtual column.

Physical columns, as in those represented in your spreadsheet, only update their values when you actually open and save the form.

So to update the values in your spreadsheet, you need to
2X_2_2026ee103af72471a22fc7b248d163e353d5e49e.png
All records that you need to update need to be opened and saved.


There are methods you can introduce into your app that make these sort of updates faster to accomplish.

What I do is to add a hidden column to every table I make called โ€œUpdate.โ€ Itโ€™s a number column and I create an action that basically adds 1 to the number in the update column - this in turn gets all the app formulaโ€™s to recalculate themselves.
2X_e_ed16ebe93f33752cb4341469d9c2cfbe0524d31b.png
2X_5_54a9d4033263421588826ff8b20757164896aa2d.png

2X_a_ab22e739595156b259845df33ec5f93ef6a180d3.gif

@MultiTech_Visions Thank you so much for the explanantion. It makes sense now.

Iโ€™ve created a refresh action which will be executed when a new row is added to the table.

Is it possible to put the action icon on the Table View, instead of in the detail or form view?

Next to this icon: 2X_7_753cd2288d04f5a4d5c8debb4482946a35866548.png

or here: 2X_4_4d6d9185f091afa1cb77ad4926170eea99eb6629.png

You donโ€™t need to update a record when itโ€™s created, it calculates values at that time.

The update action is for records that need to be updated AFTER theyโ€™ve been created.

But to answer the follow up question: no, we donโ€™t really have much ability to put actions in these locations at the moment.

So I went with a Virtual Column instead, its work much better now. Thank you!!

Thanks for the insight on action items.

Top Labels in this Space