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

Asteroid

Following up on @SeanAdams iterative macro solution, here a similar one.

I was impressed by @AdamR  & @patrick_digan  discussion of using %Question.FieldName% to pass users' field names and values.

However, I could not figure out how to only accept one field from the user but keep iterating more variables--(Factor, Factorial, & Message).

Spoiler
Highlighted
Asteroid

Hello @BarnesK

This batch macro is an excellent approach using the value for the control parameter to generate the rows. I also noticed that once you run the macro, it converts the defaulf value to text as seen here.

Well done; that was a pretty good idea.

Spoiler
Asteroid

Hey @Treyson

Pretty good workflow; I was expecting the negative factorials results go positive negative like this: −2! = −2 −2 + 1! = −2 * −1 = 2

Check out this reference.

Alteryx
Spoiler

My Solution. Used generate rows and multi-row formula

Alteryx

Pretty much the same as everyone else.

Alteryx Partner

Alteryx
Spoiler
Tonya Smith
Technical Product Manager, Engine
Asteroid
Spoiler
Asteroid

Meteor

Very first Macro!