Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Earnings Cap using IF statement in Formula Tool

KSBurnett
6 - Meteoroid

I'm trying to put an earnings cap in a WF that will cap anything over $20,000 at $20,000

 

I created a new column Called Total Sales and have the following IF statement

 

IF [Total Sales Credit] > 20000 THEN [Total Sales Credit] = 20000 ELSE [Total Sales Credit] ENDIF

 

Data type going in and coming out is Double

 

This statement results in anyone with earnings over $20,000 getting a $0 value instead of $20,000

 

I also tried putting () around my conditions but that changed nothing.

Help!

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@KSBurnett ,

 

 how about trying this expression in a formula:

 

MIN ([Total sales credit],20000)

 

 cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Emil_Kos
17 - Castor
17 - Castor

Hi @KSBurnett,

 

Please try:

 

IF [Total Sales Credit] > 20000 THEN  20000 ELSE [Total Sales Credit] ENDIF

 

 

Tyro_abc
11 - Bolide
Spoiler
Please check this formula..

arundhuti726_1-1611003202885.png

 


Spoiler
IIF([Amount]>=20000,20000,[Amount])

Regards 

Arundhuti

Labels