We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
alteryx Community

# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
###### IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

## Challenge #238: Ideal Gases Don't Exist

Alteryx

A solution to last week's challenge can be found here

The Ideal Gas law is a staple of Chemistry classes around the world. You may recall that it is defined as PV=nRT; where P = pressure, V = volume, n = the number of moles, R = the ideal gas constant, and T = temperature.

This week's challenge is to create an app that requires an end user to select 3 checkboxes and enter values, then produces the final variable and units as a result.

For the sake of simplicity, we will use static units for all variables. Pressure in ATM, Volume in Liters Temperature in Kelvin, and R = 0.082057338. Use 3 decimal places on the inputs. You can check your math here.

Bonus: Add in error messages if the user selects too few or too many checkboxes.

11 - Bolide

I hope this solution gets a good reaction from the community:

Spoiler

(edit 10/19 12:38 CT) video of solution overview:

Spoiler
10 - Fireball

Cool challenge! I managed to build in error-checking, and everything seems to be working swimmingly. I'm sure using interface tools isn't a common occurrence for many developers, so challenges like this are excellent practice.

Spoiler
I'm not a huge fan of hard-coding all of the "error" possibilities, but I couldn't think of a better way to check for errors in this case. I'm sure there is a much more elegant solution.

12 - Quasar
Spoiler

Fun way to start a Monday.

10 - Fireball
Spoiler
15 - Aurora

Nice Challenge! I also added an error for if someone selected all 4 variables

Spoiler
AppInterfaceToo few variablesToo many variables
22 - Nova

Really fun challenge 😀

The bonus part was something new to me had fun cracking it was a great learning configuring the error tool.

Spoiler

App:

Error message

You got to select exactly 3 parameters and you get the fourth missing one 😉

App Rerun:

Output:

Cheers and Happy Analyzing 😀

16 - Nebula
Spoiler

I don't use interface tools in my daily business, great opportunity to practise.

17 - Castor
Spoiler

11 - Bolide
Spoiler

Well that was a GAS!!!!