Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Calculating Gross salary

LuckyRaju
7 - Meteor

i want to calculate gross amount based on Net amount and  taxes

 

For ex:  Net amount : 1000

                   Tax : 10% 

 

            Gross Amount would be around 1111.   (  Gross Amount  (1111) - 10 % would be around 1000)

 

             Can you help me to get the flow or Macro achieve this logic,             

9 REPLIES 9
binuacs
21 - Polaris

@LuckyRaju What is the logic you are using to calculate the Gross Amount? I created a workflow maybe you can edit it according to the logic

binuacs_0-1687260840062.png

 

LuckyRaju
7 - Meteor

I used calculator manually to get gross amount for 1000.  

 

logic would be :  add 1 to Net amount and subtract 10%. Repeat this process till you get 1000.  can we use Iterative macro?  if yes, can you please help me to create it. 

 

 

ShankerV
17 - Castor

Hi @LuckyRaju 

 

One way of doing this.

 

ShankerV_0-1687260894262.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @LuckyRaju 

 

Step 1: Input

 

ShankerV_0-1687260954292.png

 

Step 2: 

 

ShankerV_1-1687260978067.png

 

IF [Tax]=10
THEN ([Net amount]*.1111111)+[Net amount]
ELSE null()
ENDIF

 

ShankerV_2-1687261050615.png

 

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @LuckyRaju 

 

Tips: I have used the Net to Gross Calculator

https://www.omnicalculator.com/finance/net-to-gross

 

If you enter the Gross %, we will get the Net %

 

ShankerV_0-1687261213036.png

 

 

ShankerV_1-1687261232495.png

 

I have used the net % to calculate the Gross directly.

 

This will be useful if you have less number of tax percentage.

 

Many thanks

Shanker V

 

binuacs
21 - Polaris

@LuckyRaju I think the below formula should work

binuacs_0-1687261537361.png

 

LuckyRaju
7 - Meteor

Thanks for the solution.

This will work only if the tax is 10 %.  Tax rate is also dynamic number. it should work for any tax rate and Any amount

binuacs
21 - Polaris

@LuckyRaju Updated the workflow

 

binuacs_0-1687261739615.png

 

If you don't have % in the tax then use the formula 

 

Round([Net amount]/(1-[Tax]/100),1)

 

hlee36
8 - Asteroid

I'm a little confused.

 

Isn't this basic algebra? 1000 / (1-.10) =  1111.11. You don't need a macro.

 

hlee36_2-1687268069542.png

 

 

Labels
Top Solution Authors