Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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 #238: Ideal Gases Don't Exist

AYXAcademy
Alteryx
Alteryx

A solution to last week's challenge can be found hereArticle.png

 

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.

Aaron_Harter
ボリード

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

スポイラ
238.1.PNG

238.e.PNG

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

スポイラ
johnemery
ボリード

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.

スポイラ
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.

Workflow capture.PNGAnswer capture.PNG 



 

Greg_Murray
クエーサー
スポイラ
Greg_Murray_0-1603116971878.png

 

Fun way to start a Monday. 

JethroChen
ファイアボール
スポイラ
challenge_238_jc.PNG
OllieClarke
16 - Nebula
16 - Nebula

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

スポイラ
AppAppInterfaceInterfaceToo few variablesToo few variablesToo many variablesToo many variables
atcodedog05
22 - Nova
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.

 

スポイラ
atcodedog05_0-1603118280488.png

App:

atcodedog05_1-1603118298553.png
Error message
atcodedog05_2-1603118375932.png

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

App Rerun:
Capture.PNG
Output:

 
atcodedog05_0-1603119320516.png

Cheers and Happy Analyzing 😀

RolandSchubert
16 - Nebula
16 - Nebula
スポイラ
238.png

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

patrick_digan
17 - Castor
17 - Castor
スポイラ
patrick_digan_0-1603122262042.png

 

paulfound
ボリード
スポイラ
PaulFound_0-1603122535189.png

 

Well that was a GAS!!!!