cancel
Showing results for 
Search instead for 
Did you mean: 

Challenge #234: Spell It Out For Me - Part 1

AYXAcademy
Alteryx

Challenge #234: Spell It Out For Me - Part 1

A solution to last week’s challenge can be found hereSource: https://www.mashupmath.com/blog/expanded-form-with-decimalsSource: https://www.mashupmath.com/blog/expanded-form-with-decimals

 

This week's challenge is a two parter that will include a follow up challenge next week. For now, we dig into part 1!

 

If you've ever worked with continuous variables in Designer, you may have noticed that the values are left justified in the Results Window. This can make it a little more difficult to read your dataset. Convert the values provided into a table that lines up the decimals and has only one character per cell.

Attachment
Download this attachment
Attachment
Download this attachment
Highlighted

Re: Challenge #234: Spell It Out For Me - Part 1

This will work for any set of numbers that has no more than 2 d.p and is no more that 999999999.99. I could have made it more adaptable but I thought that would be overkill for currency.

Attachment
Download this attachment
Toons
Quasar

Re: Challenge #234: Spell It Out For Me - Part 1

My solution :

 

Spoiler
Toons_0-1612475476970.png

 

Attachment
Download this attachment
jamielaird
Magnetar

Re: Challenge #234: Spell It Out For Me - Part 1

Here's my solution:

Spoiler
jamielaird_0-1612531955325.png

 

Attachment
Download this attachment
JP_SDAK
Asteroid

Re: Challenge #234: Spell It Out For Me - Part 1

Love the tokenizer!  Sounds like a super hero

Spoiler
JP_SDAK_0-1612737239676.png

 

Attachment
Download this attachment
apathetichell
Arcturus

Re: Challenge #234: Spell It Out For Me - Part 1

Now off to browse everyone elses solutions to see if there was some two tool solution which I skipped... Is there an issue with some versions processing fixed decimal types? I know there was a question on the forum a few weeks back from a user who couldn't get two decimal places automatically using a fixed decimal with a detail of 2.  My version of Designer seems to have the same issue so I had to manually add the extra zero where applicable.

Attachment
Download this attachment
SWalker
Meteor

Re: Challenge #234: Spell It Out For Me - Part 1

Lil Pad action & Regex. 

Attachment
Download this attachment
MPard
Meteoroid

Re: Challenge #234: Spell It Out For Me - Part 1

Spoiler
MPard_0-1615162537587.png

 

Found an elegant 3 step solution for this one!

Attachment
Download this attachment
bjkay30
Asteroid

Re: Challenge #234: Spell It Out For Me - Part 1

I struggle to find a use-case where needing to do this would actually be beneficial.  However, good use of the "Padleft" function.

 

Spoiler
bjkay30_0-1616504711405.png

 

Attachment
Download this attachment
PeterYuan
Meteor

Re: Challenge #234: Spell It Out For Me - Part 1

Spoiler
234.png

 

learn about Padleft function

Attachment
Download this attachment
DataHabanero
Comet

Re: Challenge #234: Spell It Out For Me - Part 1

Excellent challenge, really fun!

Attachment
Download this attachment