Alteryx Designer Desktop Discussions

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

calculations

ntudev
8 - Asteroid

how would i get it to add another column to say Moved up or Moved Down if the numbers are different? 

 

AsOfDateS&P RatingPrior Month S&PMoody RatingPrior Month MoodyMovement
5/31/2022901010.0003Moved down
5/31/202280700.38350.1753Moved Down
5/31/202254800.00740.3835Moved Up
5/31/202257800.01410.3835Moved Up
5/31/202270600.17531Moved Up
5 REPLIES 5
IraWatt
17 - Castor
17 - Castor

Hey @ntudev,

You can use a formula tool like this:

IraWatt_0-1658259380814.png

The community has some quick and easy videos on formulas and the Formula Tool here https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Writing%20... 

 

Any questions or issues please ask :)
HTH!
Ira

 

ntudev
8 - Asteroid

is it possible to say, if it it moved by < >

.05 "Move Up by 1"

.10 "Move Up by 2"

.15 "Move Up by 3"

.50 "Move Up by 4"

1 Move Up by 5

.

IraWatt
17 - Castor
17 - Castor

@ntudev It definitely is possible though what do you mean by .05? does that mean Moody Rating-Prior Month Moody is between 0 and .05 or does it mean there is a 5% change?

ntudev
8 - Asteroid

it doesnt matter as long as i see your formula, i'm just making things up that is similar to my project.

IraWatt
17 - Castor
17 - Castor

Ah okay here's an example:

IraWatt_0-1658265652413.png

I created a Change column to calculate the difference between the previous and current month. Then added a formula which adds 1,2 or 3 depending on the value of change.

 

Labels