Mushigee2266 Posted October 18, 2022 Report Share Posted October 18, 2022 I have following two SQL formulas in formula fields 1. (SELECT COUNT (Master_Data_Auto_Short_Condition_Validation) FROM _v_Master_Data_Auto_Short_View WHERE Master_Data_Auto_Short_Category=Target.[@field:Master_Data_Auto_Short_Category] AND Master_Data_Auto_Short_Condition_Validation !="3" ) Its answer is 13 2. and second is (SELECT SUM (Master_Data_Auto_Short_Condition_Validation) FROM _v_Master_Data_Auto_Short_View WHERE Master_Data_Auto_Short_Category=Target.[@field:Master_Data_Auto_Short_Category] AND Master_Data_Auto_Short_Condition_Validation !="3") It answer is 10 3. Now I am dividing serial 2 with serial 1 ( i.e, 10/13) but answer is 0 in caspio calculated fields. These formulas give accurate answer when I divide with equal number. Otherwise answer is zero. Please can anybody diagnose the problem Quote Link to comment Share on other sites More sharing options...
0 Queso Posted October 18, 2022 Report Share Posted October 18, 2022 Hi @Mushigee2266, It seems that the field you are using for Calculated Value/Field is an Integer data type. You can try a Virtual Field or change your actual field's data type into Number. Here is a similar forum post about your concern: Quote Link to comment Share on other sites More sharing options...
0 Mushigee2266 Posted October 19, 2022 Author Report Share Posted October 19, 2022 Thank you very much. It is working now. Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted October 25, 2022 Report Share Posted October 25, 2022 Hello! For more details about the different functions available in Caspio, you may check their article here: https://howto.caspio.com/function-reference/ Quote Link to comment Share on other sites More sharing options...
Question
Mushigee2266
I have following two SQL formulas in formula fields
1.
(SELECT COUNT (Master_Data_Auto_Short_Condition_Validation) FROM _v_Master_Data_Auto_Short_View
WHERE Master_Data_Auto_Short_Category=Target.[@field:Master_Data_Auto_Short_Category] AND Master_Data_Auto_Short_Condition_Validation !="3" )
Its answer is 13
2. and second is
(SELECT SUM (Master_Data_Auto_Short_Condition_Validation) FROM _v_Master_Data_Auto_Short_View
WHERE Master_Data_Auto_Short_Category=Target.[@field:Master_Data_Auto_Short_Category] AND Master_Data_Auto_Short_Condition_Validation !="3")
It answer is 10
3. Now I am dividing serial 2 with serial 1 ( i.e, 10/13) but answer is 0 in caspio calculated fields.
These formulas give accurate answer when I divide with equal number. Otherwise answer is zero.
Please can anybody diagnose the problem
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.