Jump to content

Insert a calculation in a rule instead of a field


Recommended Posts

Hi,

Can i insert a calculation in a rule instead of a field??

Now i write a calculation in a field of a excel and fusion pro read the result.

Would i that fusion pro make the calculation by most field to excel.

For example now in field A2 i write =B2+(C3/H4) after i want write in a rule (Field(" Prezzo") +(Field("Vendite")/(Field("Prodotti")... is it possible??

Thanks

Link to comment
Share on other sites

Hi,

Can i insert a calculation in a rule instead of a field??

Now i write a calculation in a field of a excel and fusion pro read the result.

Would i that fusion pro make the calculation by most field to excel.

For example now in field A2 i write =B2+(C3/H4) after i want write in a rule (Field(" Prezzo") +(Field("Vendite")/(Field("Prodotti")... is it possible??

Thanks

Sure. You want to use either the Int function (for whole numbers) or StringTo Number (for non-integral numbers), something like this:

return StringToNumber(Field(" Prezzo")) +(StringToNumber(Field("Vendite")) / StringToNumber(Field("Prodotti")));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...