SOLVED
Way to get quotient integer like QUOTIENT function in excel
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
DataUser
7 - Meteor
‎01-04-2018
09:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
Solved! Go to Solution.
Labels:
- Labels:
- Expression
- Workflow
2 REPLIES 2
ACE Emeritus
‎01-05-2018
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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)
‎01-05-2018
07:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Great thank you!
