Alteryx Designer Desktop Discussions

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

Group Number

SP3000
8 - Asteroid

Hi,

 

I am trying to group the number column into group columns as mentioned in the below table. Can someone please advise the best way to do it?

 

NumberGroupGroup2
3403730000-4000030K - 40K
6629960000-7000060K - 70K
5041350000-6000050K-60K
3167230000-4000030K - 40K
4 REPLIES 4
Christina_H
14 - Magnetar

If all your groups are equal sizes, I would use something like this:

tostring(floor([Number]/10000)*10000)+"-"+tostring(ceil([Number]/10000)*10000)

This gives you the first group, or you can edit it for the second format.

afv2688
16 - Nebula
16 - Nebula

Hello @SP3000 ,

 

How about this

 

ToString(Round([Number]-5000, 10000)) + '-' +
ToString(Round([Number]+5000, 10000))

AND

ToString(Round([Number]-5000, 10000)/1000) + 'K - ' +
ToString(Round([Number]+5000, 10000)/1000) + 'K'

 

Untitled.png

 

Regards

SP3000
8 - Asteroid

Thank you so much!

SP3000
8 - Asteroid

Thank you so much!

Labels