Below is a full list of formulas supported in the Hive Formula Custom Fields:
Hive-specific Formula Fields
Function | Example call | Expected result |
|
| Action start date |
|
| Action due date |
|
| Action status, for example "In Progress" |
|
| Project start date |
|
| Project due date |
|
| Stored value of "AnyCustomField" |
DATE
Function | Example call | Expected result |
|
| Tue Jul 08 2008 00:00:00 GMT-0700 (PDT) |
|
| Action due date |
|
| Mon Aug 22 2011 00:00:00 GMT-0700 (PDT) |
|
| 15 |
|
| 42 |
|
| 360 |
|
| Wed Dec 15 2010 00:00:00 GMT-0800 (PST) |
|
| Sun Oct 31 2010 00:00:00 GMT-0700 (PDT) |
|
| 7 |
|
| 45 |
|
| 10 |
|
| 4 |
|
| 109 |
|
| 23 |
|
| Thu Feb 20 2020 23:02:55 GMT+0100 (Central European Standard Time) |
|
| 18 |
|
| 0.7001157407407408 |
|
| 0.2743055555555556 |
|
| Thu Feb 20 2020 23:02:55 GMT+0100 (Central European Standard Time) |
|
| 3 |
|
| 2008 |
|
| 11 |
|
| Mon May 04 2009 00:00:00 GMT-0700 (PDT) |
|
| Sun Feb 05 2012 00:00:00 GMT-0800 (PST) |
|
| 0.5780821917808219 |
FINANCIAL
Function | Example call | Expected result |
|
| 350 |
|
| -9916.77251395708 |
|
| -614.0863271085149 |
|
| 159500 |
|
| 250000 |
|
| 1.625 |
|
| 1.1 |
|
| 0.10381289062499977 |
|
| 2124.874409194097 |
|
| 133.08900000000003 |
|
| 928.8235718400465 |
|
| 0.05715142887178447 |
|
| -625 |
|
| 0.07971710360838036 |
|
| 0.09645475633778045 |
|
| 63.39385422740764 |
|
| 1031.3503176012546 |
|
| 7.272540897341714 |
|
| -42426.08563793503 |
|
| -43354.909209775076 |
|
| -29864.950264779152 |
|
| 0.06517891177181533 |
ENGINEERING
Function | Example call | Expected result |
|
| 42 |
|
| 2a |
|
| 52 |
|
| 8 |
|
| 704643072 |
|
| 58 |
|
| 10 |
|
| 50 |
|
| 3+4i |
|
| 524288 |
|
| 101010 |
|
| 2a |
|
| 52 |
|
| 1 |
|
| 0.8427007929497149 |
|
| 0.1572992070502851 |
|
| 1 |
|
| 101010 |
|
| 42 |
|
| 52 |
|
| 5 |
|
| 4 |
|
| 0.9272952180016122 |
|
| 3-4i |
|
| 0.8337300251311491-0.9888977057628651i |
|
| 0.8337300251311491+0.9888977057628651i |
|
| 0.21762156185440265-0.8680141428959249i |
|
| 0.6215180171704283-0.3039310016284264i |
|
| 0.3039310016284264-0.6215180171704283i |
|
| 0.44+0.08i |
|
| 1.4686939399158851+2.2873552871788423i |
|
| 0.3465735902799727+0.7853981633974483i |
|
| 0.1505149978319906+0.3410940884604603i |
|
| 0.5000000000000001+1.1330900354567985i |
|
| 1.2246063538223775e-16+2.0000000000000004i |
|
| -85+20i |
|
| 3 |
|
| 0.4983370305551868+0.591083841721045i |
|
| 0.4983370305551868-0.591083841721045i |
|
| 1.2984575814159773+0.6349639147847361i |
|
| 0.6349639147847361+1.2984575814159773i |
|
| 1.0986841134678098+0.45508986056222733i |
|
| 2+2i |
|
| 9+12i |
|
| 0.2717525853195117+1.0839233273386946i |
|
| 101010 |
|
| 42 |
|
| 2a |
LOGICAL
Function | Example call | Expected result |
|
| false |
|
| false |
|
| Hello! |
|
| Goodbye! |
|
| Error |
|
| Error |
|
| false |
|
| true |
|
| Seven |
|
| true |
|
| false |
MATH
Function | Example call | Expected result |
|
| 4 |
|
| 2.0943951023931957 |
|
| 2.993222846126381 |
|
| 0.46364760900080615 |
|
| 0.16823611831060645 |
|
| 10,32 |
|
| 1912 |
|
| -0.5235987755982988 |
|
| -1.6472311463710965 |
|
| 0.7853981633974483 |
|
| -2.356194490192345 |
|
| -0.10033534773107562 |
|
| 0000001111 |
|
| -6 |
|
| -6 |
|
| -4 |
|
| 28 |
|
| 20 |
|
| 0.5403023058681398 |
|
| 1.5430806348152437 |
|
| -0.15611995216165922 |
|
| 1.0373147207275482 |
|
| 1.5377805615408537 |
|
| 0.46964244059522464 |
|
| 255 |
|
| 0.8427007929497149 |
|
| 0.1572992070502851 |
|
| -2 |
|
| 2.718281828459045 |
|
| 120 |
|
| 105 |
|
| -4 |
|
| -4 |
|
| -4 |
|
| 12 |
|
| -9 |
|
| true |
|
| -4 |
|
| false |
|
| 144 |
|
| 4.454347296253507 |
|
| 3 |
|
| 5 |
|
| -1 |
|
| -9 |
|
| 1260 |
|
| -3 |
|
| 25 |
|
| 2250 |
|
| -3 |
|
| 3.141592653589793 |
|
| [Random real number greater between 0 and 1] |
|
| [Random integer between bottom and top] |
|
| 1000 |
|
| -3.14 |
|
| -3.15 |
|
| 1.9035944074044246 |
|
| 5.725037161098787e-20 |
|
| -1 |
|
| 0.8414709848078965 |
|
| 1.1752011936438014 |
|
| 4 |
|
| 2.5066282746310002 |
|
| 10,32 |
|
| 42 |
|
| 24 |
|
| 12 |
|
| 5 |
|
| 25 |
|
| -20 |
|
| 30 |
|
| 8 |
|
| 1.5574077246549023 |
|
| -0.9640275800758168 |
|
| -8 |
STATISTICAL
Function | Example call | Expected result |
|
| 4.5 |
|
| 7.5 |
|
| 7.5 |
|
| 3.5 |
|
| 6 |
|
| 0.6854705810117458 |
|
| 1.9999999999999998 |
|
| 0.205078125 |
|
| 0.9970544855015815 |
|
| 4 |
|
| 4 |
|
| 2 |
|
| 3 |
|
| 2 |
|
| 3 |
|
| 5.2 |
|
| 9.666666666666668 |
|
| 115 |
|
| 0.8646647167633873 |
|
| 0.0012237917087831735 |
|
| 0.10930991412457851 |
|
| 0.9729550745276566 |
|
| 0.75 |
|
| 10.607253086419755 |
|
| 1,2,4,2 |
|
| 1.3293403919101043 |
|
| 12.801827480081961 |
|
| 0.4772498680518208 |
|
| 5.656854249492381 |
|
| 32.00000000000003 |
|
| 4.266666666666667 |
|
| 0.3632610939112487 |
|
| 0.04838709677419217 |
|
| -0.15179963720841627 |
|
| 5 |
|
| 2,1 |
|
| 0.0390835557068005 |
|
| 4.000000000000001 |
|
| 0.8 |
|
| 1 |
|
| 3.5 |
|
| 0.1 |
|
| 0 |
|
| 2,3 |
|
| 2 |
|
| 0.9087887802741321 |
|
| 42 |
|
| 0.8413447460685429 |
|
| 1.0000000000000002 |
|
| 0.6993786061802354 |
|
| 1.5 |
|
| 1.9 |
|
| 0.4 |
|
| 0.33 |
|
| 970200 |
|
| 64 |
|
| 0.30113743215480443 |
|
| 0.12465201948308113 |
|
| 0.4 |
|
| 1.25 |
|
| 1.75 |
|
| 4.5 |
|
| 4 |
|
| 0.4891304347826088 |
|
| 0.3595430714067974 |
|
| 0.303193339354144 |
|
| 2 |
|
| 3 |
|
| 1.3333333333333333 |
|
| 6.013872850889572 |
|
| 5.361902647381804 |
|
| 5.489889697333535 |
|
| 6.191391873668904 |
|
| 3.305718950210041 |
|
| 0.9946953263673741 |
|
| 59.99999999996535 |
|
| 3.7777777777777777 |
|
| 36.16666666666667 |
|
| 28.75 |
|
| 30.13888888888889 |
|
| 38.333333333333336 |
|
| 0.9295813900692769 |
|
| 0.09057419685136381 |
TEXT
Function | Example call | Expected result |
|
| A |
|
| Monthly report |
|
| 65 |
|
| Andreas Hauser |
|
| false |
|
| 8 |
|
| Sale |
|
| 11 |
|
| e. e. cummings |
|
| Flow |
|
| 2500.27 |
|
| This Is A Title |
|
| Alto |
|
| true |
|
| STOIC |
|
| abcde*k |
|
| *-*-*- |
|
| Price |
|
| CDXCIX |
|
| 8 |
|
| A,B,C |
|
| Quarter 1, 2012 |
|
| Rainfall |
|
| First Quarter Earnings |
|
| B |
|
| 66 |
|
| TOTAL |
Examples of Formula Custom Fields
Logic Function IF/OR Example:
Formula Used:
IF(OR((EXACT(field("SelectionOne"), 'Bee')),(EXACT(field("SelectionTwo"), 'Hive'))), 'Yes', 'No')
Show Yes if SelectionOne has a 'Bee' or SelectionTwo has a 'Hive'. If not, show No. (See GIF)
Logic Function IF/AND Example:
Formula Used:
IF(AND((EXACT(field("SelectionOne"), 'Bee')),(EXACT(field("SelectionTwo"), 'Hive'))), 'Yes', 'No')
Show Yes if SelectionOne has a 'Bee' and SelectionTwo has a 'Hive'. If not, show No. (See GIF)