Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

round the percent

Avatar

Level 5

Hi team, 

 

Is there a way to round the decimal points for the function below:

(percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100

I tried adding round:

round((percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100, 2)

but it throws an error saying that the round function requires 2 or 3 arguments. Please suggest how I can achieve this.

<node expr="(percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100" alias="@OpenRate"/>

Thank you in advance.

3 Replies

Avatar

Community Advisor

hHi @rvnth ,

 

Please try this way and let me know if it works

 

Round((Percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100, 2)

 

Regards,

Pravallika.

Avatar

Level 5

Hi @LakshmiPravallika ,

 

Thank you. It worked, but for one delivery, the decimal is still not rounding off to two decimal places. Please advise.

 

rvnth_0-1718096210524.png