
Hi Community members,
A solution to last week’s challenge can be found here.
This challenge was submitted by John Kupchik, @JAKupchik . Thank you, John for your submission!
In this week’s challenge, you apply your skills with formulas, macros, and analytic apps to simulate a basic probability experiment: flipping a coin. This challenge helps you practice building iterative logic and user-driven apps in Alteryx Designer.
Here are the steps you need to follow to build the flip-coin app:
- Create an Iterative Macro (`Coin Flip Macro.yxmc`) that repeats the coin flip simulation for a specified number of times. This macro should:
- Initialize with a Text Input containing iterations, head count and tail count.
- Update the counts on each iteration.
- Use a condition to stop once the iteration count reaches the user-specified total.
- Once the macro is created, build the analytic app that does the following:
- Prompts the user with a Text Box question: "How Many Coin Flips?"
- Passes this input into the macro to determine the number of simulations it runs.
- Displays how many times "Heads" and "Tails" occurred.
Once you have completed your challenge, include your solution file and a screenshot of your workflow as attachments to your comment.
Good Luck!
The Academy Team