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.
alteryx Community

# 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

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

and vertical iterative macro!

8 - Asteroid
Spoiler
Main Workflow

Spoiler
Batch Macro

Spoiler
Iterative Macro

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

Thank you,

12 - Quasar

No-macro workflow:

Spoiler

Interface:

Output:

7 - Meteor

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

8 - Asteroid

Here is my solution:

Spoiler
First I built an Iterative Macro to calculate each digit based on the selected base:

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

8 - Asteroid
Spoiler

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

Alteryx

Spoiler
Workflow:

Macro:

Alteryx

Solution attached.

5 - Atom

Submitting my first weekly problem solution!

Spoiler

I made an iterative macro to handle the conversion:

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

Any feedback is welcomed :)