Skip to main content
Nintex Community Menu Bar

using Rules for calculations like 12%

  • September 14, 2018
  • 2 replies
  • 15 views

How do you use rules to do something like this

I have a Textbox and i want to do calculations like 15%
i made a new Expression using that fx and then it opens the Expressions area and then i input the data for the calculations and it loads and nothing comes up again after that.

Now i want to know How do you do calculations doing rules.

 

2 replies

Forum|alt.badge.img+9
  • September 14, 2018

Hi Gozni,


 


On my side i used an expression on a datalabel as follows:


[TXTValue] * 0.15


This returned 15% of the value entered in the TXTValue textbox.


 


Can you perhaps share your expression?


-Jean


Forum|alt.badge.img+10
  • Nintex Employee
  • September 19, 2018

Hi Gonzi


As an example, you can create an expression as follow - [Textbox1] / [Textbox2] * 100
This will give you the value of [Textbox1] as a percentage of [TextBox2]


Then in your rule you can use a Transfer data event with the expression as the value for [TextBox3]. You can also add the % symbol after the expression for it to display correctly.


This will give you 12% as the value in [TextBox3]



Alternatively, you can add an expression directly to a control. The value will update automatically as the other controls get changed.


 


Regards,
ThinusC