In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Subtracting a number from a known variable

akinch001
5 - Atom

Hi all,

 

I am trying to do a simple subtraction with the formula tool. [Net Assets]-100000. Is is not possible to subtract a general number/amount from a known variable?

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@akinch001 
Can you give us a bit more information, liek input and desired output?

AngelosPachis
16 - Nebula

Hi @akinch001 ,

 

This is a long shot in the dark to understand why the subtraction is not working for you, but can you make sure that the [Net Assets] field type is numeric (i.e. float, double or Int).

 

Alteryx allows you to subtract values by the expression you used, so the only reason I can think of that prevents you from making that calc is data type mismatch.

grazitti_sapna
17 - Castor

Hi @akinch001 , unless and until the variable Net Assets is int  or double type the subtraction should work. Please refer to the screenshot.

 

grazitti_sapna_0-1607586702916.png

 

The following can be the issues as per my understanding:

1. Net Assets is of string datatype.

2. The formula might be used like Net Assets-'1000000' where '1000000' denotes a string.

 

In case this helps kindly mark this post as solution.

 

Thanks.

Sapna Gupta
Labels
Top Solution Authors