Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Way to get quotient integer like QUOTIENT function in excel

DataUser
7 - Meteor

Is there an opposite to the MOD function? I'm looking for some function or way to get the quotient integer (so not including the remainder) like the Quotient function in excel. Is there a Alteryx formula for this or a work around that would yield this result?

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

If you are dealing just with postive values then:

FLoor([Numerator]/[Denominator])

will work

 

For general case, it is a little more work:

Floor(Abs([Numerator]/[Denominator]))*IIF([Numerator]/[Denominator]>0,1,-1)

 

DataUser
7 - Meteor

Great thank you!

Labels