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 #160: Diamonds R Forever

sprodger
8 - Asteroid

my solution: 

Spoiler
challenge_159_solution_SP.JPG
mpennington
11 - Bolide

Wanted to try and join a lookup table to work like an approximate VLOOKUP, but struggled with it.  Ended up with a formula based solution, but definitely curious if anyone finds a way to accomplish it via a similar method.  

 

Spoiler
160 MP.png
RichoBsJ
11 - Bolide

Hi! Here my solution :)

cplewis90
13 - Pulsar
13 - Pulsar

Fun challenge! I have used the R tool with an input tool, but not without an input. 

Spoiler
Challenge 160.PNG
The R code I used (I had already unzipped the file):
load("C:/Users/Christopher.Lewis/Save Location/Alteryx Challenges/Big Diamonds/BigDiamonds.Rda")
write.Alteryx(diamondsbig, 1)
T_Willins
14 - Magnetar
14 - Magnetar

Took a little bit of time to read and comprehend the link to using the R tool.  Learning R and Python coding are on my list.

 

Spoiler
Workflow 160.GIF
Verakso
11 - Bolide

I got to show this to the wife, since she is a gemologist and diamond grader 😊

 

It took me some serious time to solve this one.
Struggled with the reading of the rda file, seem I was not the only one who quite didn't get how to use slashes properly.

 

Second was the grouping. At first I hadn't seen the provided Output, so I just went for the quick and easy Smart Tile.
But just before I was to submit the answer I noticed the Output, and found out, that it was not that easy after all 😉

 

Spoiler
After I did manage to read the data, I could the use the formula tool to create the Range, and the group on that and count on carats

The WorkflowThe WorkflowBut here is a small tip (if you did not know this already)

In order to save some time, and avoid to read the data from the rda file, every time the workflow is run, then I simply added a Select tool and choose »Cache and Run Workflow«
Cache and Run WorklowCache and Run Worklow
The on all the subsequent runs, the workflow would run a little bit faster 😉Use the CacheUse the Cache

Still Climbing

/Verakso

 

 

 

 

 

 

Tanyamin
5 - Atom

It was fun to learn the R tool

ggruccio
ACE Emeritus
ACE Emeritus

Can't skip this one since I'm in the jewelry industry!

Reesetrain2
9 - Comet

My submission!

kelly_gilbert
13 - Pulsar

Had to dust off some long-unused R syntax for this one!

 

Spoiler
It would have been much easier to perform the grouping/counting in Alteryx, but I wanted to challenge myself to do it all within R!
challenge_160_workflow.PNG

challenge_160_r_code.PNG