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

nrauta
5 - Atom

I tried to do everything with only the Multi-row formula.

As I didn't found a way to do it, I added the aggregate.

dsmdavid
11 - Bolide

Useful generate rows

Spoiler
74.png
BrendaS
8 - Asteroid

Done! 

bogenberger
5 - Atom

New to the community and wanted to try a different path. 

1) Summarize Tool: Identifies the highest number that we need to calculate a factorial for.  I call this number Max

2) Generate Rows Tool: Create "Max" number of rows (this would allow the calculation of every factorial in the series in the event that the number was higher than 10)

3) Multi-Row Formula: Calculate the factorial in the next column by multiplying the previous factorial by the Number

4) Join: Collect the Factorial values for every number requested in the table.

 

I had a few questions following this workflow.

- Is the join tool computationally expensive?  This workflow calculates all the factorials we need first to minimize the multiplications and then selects only the values that were in the initial query.  If using the join tool is more computationally expensive than a multiplication there is probably a better way to do this.

- Is there a way to calculate the first row in the series without using an "If" statement?  The "IF" statement is only needed to generate the first value and wouldn't be needed if you could start the calculation on Row 2.

mascarenhas_lucas
8 - Asteroid
Spoiler
challenge_74.PNG
daniel_ferreira
8 - Asteroid

Follow my workflow and macro files that solve this exercise...

StevenBetts
8 - Asteroid

Here's my solution to the problem. I've tried to take account for a potential change in field name in future input files. I think my method solves this - unsure though. it's my first macro!

AndyBate
8 - Asteroid

Complete

mickael_gest
8 - Asteroid

My solution :)

 

Need to learn more about macros ...

Ukashi
8 - Asteroid

 My first Macro here :) Thank you for challenge

Spoiler

 

image.png