David B
09/12/2023, 3:43 AMRANK() or DENSE_RANK() as detailed here? (the example they give is DENSE_RANK ({amount}) WITHIN GROUP (ORDER BY {AMOUNT}), which doesn't work)
The analytic version is doing what I want, but it's weird that I can get the aggregate version working given the example NS provides.Marc
09/12/2023, 10:19 PMMarc
09/12/2023, 10:20 PMDavid B
09/12/2023, 10:49 PMKEEP(DENSE_RANK FIRST|LAST... successfully.
Although, in that example, is there any difference between that formula and just using When Ordered By Field (see screenshot)michoel
09/14/2023, 4:25 AMWhen Ordered By probably just uses that internally. I recall it being buggy in SuiteScript and having to use DENSE_RANK directlyDavid B
09/14/2023, 4:27 AMDavid B
09/14/2023, 4:28 AMDENSE_RANK(exp1 [,exp2 [...]])michoel
09/14/2023, 4:48 AMDENSE_RANK ({amount}) WITHIN GROUP (ORDER BY {AMOUNT}) is supposed to do.David B
09/14/2023, 5:02 AM