Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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 #74: Build a Factorial Calculator

Pete_Rodgers
Alteryx
Alteryx

i really tried to solve it as an iterative macro, but KISS....

 

Spoiler
Pete_Rodgers_1-1666109816900.png

 

acarter881
12 - Quasar

Here's my second solution (first solution I posted a while ago used the Python tool). I believe the iterative macro is much more efficient than a batch macro since the batch macro has to calculate each factorial up to each number (i.e., it's going to duplicate work). The iterative macro does not have to recalculate any factorials since it is incrementing and validating whether to continue multiplying depending on what number is in a cell. Seems to be significantly more efficient.

Spoiler
acarter881_0-1666558363895.png

 

gabrielamitache
6 - Meteoroid

Solution

TungThanhHo
8 - Asteroid

my solution

trapy009
7 - Meteor

my solution

keynguyen
8 - Asteroid
Spoiler
SpoilerChallenge 74 sol.png

Kinga
8 - Asteroid

Hi,

 

This challenge was very easy to solve without any macro. However, for learning purpose I've created solution based on each type of macro (standard, batch and iterative).

 

Spoiler
Kinga_0-1667736295690.png


Iterative macro (others are based on non-macro solution):

Kinga_1-1667736351955.png

 

saiirangam
8 - Asteroid

Challenge Completed

AndrewHoData
8 - Asteroid

My solution with custom macro icon below

Spoiler
AndrewHoData_0-1668632668152.png

 

FinnCharlton
13 - Pulsar
Spoiler
FinnCharlton_0-1668785739757.png