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 #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
2019-07-12_9-49-00.jpg
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
2019-07-12_14-45-32.jpg
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
Alteryx
Spoiler
Challenge_74_LG.PNG

My Solution. Used generate rows and multi-row formula

Alteryx
Alteryx

Pretty much the same as everyone else.

Alteryx Partner
 
Alteryx
Alteryx
Spoiler
Macro74.PNG
Tonya Smith
Technical Product Manager, Engine
Asteroid
Spoiler
74.PNG
Asteroid
 
Meteor

Very first Macro!