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 #383: Data Parsing Delight!

AYXAcademy
Alteryx
Alteryx

 

A solution to last week’s challenge can be found here.

 

This challenge comes to us from @The_Rad_Valentina    Thank you for your contribution, Valentina!

 

image.jpgEver wondered how the prices of various products are determined in your thrift store? Well, it all depends on their condition and other factors. Thankfully, your local store has a database that handles this, but there is a slight hiccupthe database contains a single column (Payload) with all this data. To address this, you have been tasked with creating a report that showcases the following details:

 

  1. Different condition types of the products
  2. Record number associated with each condition
  3. Material numbers corresponding to the products
  4. Pricing rate for different condition types
  5. Dates when these pricing rates were valid (valid from and valid to)

 

The challenge lies in parsing the information from the Payload column to create a comprehensive report listing each price on a separate line.

 

Hint: Some Price records have more than one condition type. For example:

Example_Image.png

 

 

 

 

 

 

This is an example of the report:

 

Example_Output.png

benjimoser
9 - Comet

My Solution. I did a longer workflow, since I wanted to additionally generate a report that contains all information before applying any filter or dropping any columns.

Spoiler
 
Screenshot 2023-08-07 162319.png

 

PhilipMannering
16 - Nebula
16 - Nebula

Solution attached.

 

Spoiler
image.png

 

Luke_C
17 - Castor

 

Spoiler
image.png

 

 

Kenda
16 - Nebula
16 - Nebula
Spoiler
image.png
nSpire
8 - Asteroid
Spoiler
383.png
AkimasaKajitani
17 - Castor
17 - Castor

My solution.

 

Spoiler
スクリーンショット 2023-08-08 002009.png

Djforesman
6 - Meteoroid

My solution is pretty similar to benjimoser's. 

 

Spoiler
 
Challenge383.png

 Utilizing regex and splitting columns, then rejoining at the end. Some minor clean up of field formatting as well to match the solution file

 

RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
383.png
ed_hayter
12 - Quasar
Spoiler
Pretty sure I brute forced this and the solution is not dynamic but a fun challenge
Challenge 383 WF Image.png