I created calculated fields that are correctly generating the numerator and denominator of my desired calculation (With one value per row in our table, summed).
However it won’t let me put the numerator over the denominator, whether in its own calculated field or as a value/target value pair.
I keep getting the below error.
The only thing I can think of is that actually the left side data type is an INT, while the right side is a BOOL.
But it’s summing correctly (as shown on the top visual) and my value/target value pair are still asking QS to sum the values
I cannot find a function that will cast bool to int; and normal sql syntax is not working
Edit your dataset and click on the three dot menu to the right of the field name. From there you can select ‘Change data type’ and you should be able to select INT.