Column Expression refuses to divide properly!

I have a virtual column (formatted as a percent), and I want it to display the percentage after dividing:

customers paid / total customers of type โ€œregularโ€

customers paid is in a Payments table, which contains the virtual column. This table REFS a Client List table that determines client type. However the result is never correct. I have:

  1. checked the decimal digits, max/min, and step value in the column editor
  2. reformatted the column as a decimal type, and checked digits/step value
  3. Verified that both the numerator and denominator expressions give the right value by themselves
  4. checked spacing

The result is โ€œ0.00โ€. The final nail is that simply putting in the correct static values - which with my sample data is 4/13 - also gives โ€œ0.00โ€ or 0.00%. Thereโ€™s got to be something dumb that I am not seeing!

Hereโ€™s the formula exactly as written:

(COUNT(
       SELECT(
              Payments[Month Paid?],[Month Paid?]=true
             )
       )
) / (Count(
         SELECT(
                Client List[Client Type],[Client Type]=Regular
               )
        )
)

Any help is greatly appreciated!

Solved Solved
0 3 324
1 ACCEPTED SOLUTION

View solution in original post

3 REPLIES 3

Thank you!

I forgot that COUNT returns a number type not a decimal typeโ€ฆ

I swear I searched for previous answers before postingโ€ฆ Thanks again.

yah,rightโ€ฆ

Top Labels in this Space