Virtual Columns are causing weird mathematical errors

Hi,
In my app, Iโ€™m trying to create a data completion rate column so that I could use that nifty circular percentage thingy on Cards view to display data completion on each row.

So for this purpose, Iโ€™ve created some physical columns and virtual columns to gather data completion on each table, and finally Iโ€™ve made a virtual column of โ€œpercentโ€ type in the parent table that basically does a very simple calculation of [Completion Count]/[Total Count] to be displayed as a percentage, but every time I save data, the percentage initially shows the correct figure, and then gets a value of โ€˜0โ€™ out of nowhere once the syncing of the data completes! The [Completion Count] and [Total Count] are also virtual columns, but they retain their values. I have no idea why this is happening!

Does anyone have any idea whatโ€™s going on or what I am doing wrong?

Thanks!

Solved Solved
0 4 291
1 ACCEPTED SOLUTION

Are you dividing an integer by a integer? Try:

1.0 * [completion] / [count]

View solution in original post

4 REPLIES 4

Are you dividing an integer by a integer? Try:

1.0 * [completion] / [count]

Thank you so much @Marc_Dillon. That worked perfectly. I donโ€™t understand why it made such a difference, but nevertheless it works perfectly!

Saved my day.. Thank you ๐Ÿ˜Š 

Top Labels in this Space