We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
2022.1.1.30569 Patch Release Update

The 2022.1.1.30569 Patch/Minor release has been removed from the Download Portal due to a missing signature in some of the included files. This causes the files to not be recognized as valid files provided by Alteryx and might trigger warning messages by some 3rd party programs. If you installed the 2022.1.1.30569 release, we recommend that you reinstall the patch.

Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #313: Base Converter

Kenda
15 - Aurora
15 - Aurora
Spoiler
Not as slick as @patrick_digan but gets the job done

Kenda_0-1649189833199.png



and vertical iterative macro!

Kenda_1-1649189893615.png

 

balajilolla1
8 - Asteroid
Spoiler
Main Workflow
balajilolla1_0-1649211045144.png

 

Spoiler
Batch Macro
balajilolla1_1-1649211065676.png

 

Spoiler
Iterative Macro
balajilolla1_2-1649211078740.png

 

Kiru
5 - Atom
Spoiler
Drop drown  + simple formula tool IF [Base] = 'Base 16' THEN IntToHex([Decimal]) ELSE IntToBin([Decimal]) ENDIF

Base2.png

Base16.png

Thank you, 

kelly_gilbert
12 - Quasar

No-macro workflow:

Spoiler
kelly_gilbert_0-1649282980374.png

Interface:
kelly_gilbert_2-1649283131417.png

 

Output:

kelly_gilbert_3-1649283159344.png

Quite a good one, 8 steps including the app inputs, all native functionality and no macros required.

 

Spoiler

Use 'Generate Rows' to determine the maximum that the base divides into the Decimal
Determine the modulo of the divisor to get effectively a key for that character position
Replace that key with the 0-9A-F character depending on the base
Concatenate back together, reversing the string

HarleyBarnes_Quantium_2-1649290088537.png

 


 


 

kelvinlaw
8 - Asteroid

Here is my solution:

Spoiler
First I built an Iterative Macro to calculate each digit based on the selected base:
kelvinlaw_0-1649316985451.png
kelvinlaw_1-1649317052423.png

Then they will get combined in the analytics app for output:

kelvinlaw_2-1649317102506.png
kelvinlaw_3-1649317136139.pngkelvinlaw_4-1649317167562.png
LiuZhang
8 - Asteroid
Spoiler
313 - 1.png313 - 2.png

I went for multi-row calculation to handle reminders. Additional input can be implemented for user to choose what number to convert.

johnyli168
Alteryx
Alteryx

My answer attached.

Spoiler
Workflow:
johnyli168_0-1649379279402.png

Macro:

johnyli168_1-1649379299201.png

 

andrewgu
Alteryx
Alteryx

Solution attached. 

 

 

ChloeHill
5 - Atom

Submitting my first weekly problem solution!

Spoiler

I made an iterative macro to handle the conversion:

ChloeHill_0-1649431186220.png

And used it in an analytic app so the user can input an integer and a base and see their number converted:

ChloeHill_1-1649431240686.png

 

ChloeHill_3-1649431292174.png

Any feedback is welcomed :)