community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Announcement | Get certified today - take the Alteryx Designer Core and Advanced exams on-demand now!

Challenge #176: Math Class Drill

Asteroid
 

clipboard_image_0.png

Meteoroid

I tried two ways of creating the various 3 digit numbers before testing whether they fit the condition. One using append fields (messy) and one using "Generate Rows".

This was a good challenge to familiarize myself with swapping between numbers as text vs numbers as numbers.   I guess I could actually have had one complex formula to conclude Y/N on whether sum of cubes = number, but where is the fun in writing long formulas.

 

Spoiler
Both of these give you the 4 results:

The key processing is in the formula tool, which just cubes and totals the digits. I use a filter to fine where "Total" (of cubes) = the three digit number.





challenge176.GIF

 

Atom

My Solution

Spoiler
Screenshot.JPG

Asteroid

clipboard_image_0.png

Nice one

 

Spoiler
clipboard_image_0.png

clipboard_image_1.png
Meteoroid
Spoiler
 

It initially sounded like, I needed a loop but this was a good exercise. 

Meteor

This was a fun one! I couldn't figure out a way to split the digits into columns without translating it to string and back to number.

 

Spoiler
challenge-176.PNG

 

Spoiler
clipboard_image_0.png