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 294
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