Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Weekly Challenges

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

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

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #183: Roman Numeral Math

jwlong91
8 - Asteroid

Wow!  That was tough.  I had no clue how to do this with Alteryx, so I worked through it using the Python tool.  I learned a ton about how to do this with Alteryx tools from the solution though!

Calliecobbs
8 - Asteroid

Here's my solution. That one was really tricky, but cool to explore the dynamic replace tool!  Thanks @kelly_gilbert for the guidance on this one!

Spoiler
Calliecobbs_0-1574361577994.png
SeanAdams
17 - Castor
17 - Castor

Quite sneaky level of difficulty -  thank you @LordNeilLord  , @JReid  @AnandKumar1

 

Final solution is pretty small - this won't give anything away - detail of each piece in the spoiler below

SolutionMain.jpg

 

Spoiler

This is really 3 pieces:
a) Create a list of all roman numerals.    
b) use a find/replace to replace the roman digits with arabic 
c) then execute the formula using a formula tool inside a macro.


A: Create a list of all roman numerals.

There are 2 pieces to this because roman numerals work in 2 different ways - additive (like V plus 1 = VI) and subtractive (VIII plus 1 = IX).
To make this easy - build the list of all the subtractive numbers (like 9; 450; etc) first; and then use additive logic to create all the other numbers

RomanMain.jpg

This is the next part which is an iterative macro to generate the final number set using additive logic.RomanIterative.jpg
C) Execute the formula
Trick here is to not do any work.    Create a macro, then use the action tool to swap your numerical formula into the formula box, and then run it.

FormulaTool.jpg







SeanAdams
17 - Castor
17 - Castor

@estherb47 wrote:

I'd love to figure out a more streamlined approach. Here's my go at it, not very different from anyone else.

 

Sometimes I do actually miss the INDIRECT function.....


ABSOLUTELY - and Indirect function would have been super valuable in a dozen places at work too (not just weekly challenges).

 

I think there's an idea out there for Indirect @estherb47  - if not, log it and I'll definitely vote for it!

Chantelb
9 - Comet
Spoiler

Chantelbbr_0-1574719297093.png

Chantelbbr_1-1574719319863.png

echuong1
Alteryx Alumni (Retired)

Little different approach to this one - used a batch macro to evaluate the formula!

ConradW
8 - Asteroid

183 complete 

estherb47
15 - Aurora
15 - Aurora

Hi @SeanAdams . I just checked the ideas, and indeed there is one already there. And wow would it help!!!

 

https://community.alteryx.com/t5/Alteryx-Designer-Ideas/Indirect-formula-like-Microsoft-Excel/idi-p/...

 

Like. Rinse. Repeat.

 

Cheers,

Esther

PeterA
Alteryx Alumni (Retired)

I liked this conversion challenge.  Not something you run into everyday, but it gave a good opportunity to showcase the the dynamic replace function.

 

Spoiler
weekly_challenge_183.jpg

 

Carlo_SKay
8 - Asteroid