Decimal Quotient of 2 CountDistinct Formulas

Stimulsoft Reports.WEB discussion
Post Reply
tourquse
Posts: 7
Joined: Sun Aug 07, 2022 5:55 pm

Decimal Quotient of 2 CountDistinct Formulas

Post by tourquse »

Hi,

I would like to divide two CountDistinct formulas together and show the result to 2 decimal places. I have set the TextBox text format to Number with 2 decimal places. However the result is rounding down to the nearest whole number, showing the 2 decimal places as zeros.

This is the formula I am evaluating:
{CountDistinct(Sheet1.CandidateID)}/{CountDistinct(Sheet1.ClientID)}

I have attached an example.

Thanks!
Attachments
Report (5).mrt
(22.28 KiB) Downloaded 67 times
Lech Kulikowski
Posts: 6239
Joined: Tue Mar 20, 2018 5:34 am

Re: Decimal Quotient of 2 CountDistinct Formulas

Post by Lech Kulikowski »

Hello,

You should use the following expression:
{CountDistinct(Sheet1.CandidateID)/CountDistinct(Sheet1.ClientID)}

Thank you.
Post Reply