Skip to main content

Hi there, 

I am trying to calculate a formula for a discount. The discount category is single select (10% or 20%). 

I want to calculate what the total revenue will be with the selected discount. The current formula for revenue is (price * quantity)

 

Hi @amber_elane ,

The Single select field returns a string, if it is a string such as 10% or 20%, it can be converted to a number with the VALUE function.

{Revenue}*(1-VALUE({Disucount}))

 


Hi @amber_elane ,

The Single select field returns a string, if it is a string such as 10% or 20%, it can be converted to a number with the VALUE function.

{Revenue}*(1-VALUE({Disucount}))

 


Hi @Sho thank you so much! That worked perfectly. 


Hi @amber_elane ,

The Single select field returns a string, if it is a string such as 10% or 20%, it can be converted to a number with the VALUE function.

{Revenue}*(1-VALUE({Disucount}))

 


Just to add onto this... obviously the "%" should be removed from the string before using the VALUE function.


Reply