Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Price Variation

Scheruku
8 - Asteroid

Hi All,

 

I have a product and store ID level file for which we are trying to identify the change in price in same month for same product and store id:

 

We are trying to identify the latest variance in cost price in same month for same product and store ID..

 

Attached the raw file

 

Raw File -

 

 

 

GRN NumberGRN Generated DateProduct IDStoreIDPO NumberPO TypeCost Price
12345626-09-2017 00:00AB-F00021232602688 110.122656
123456701-09-2017 17:12AB-F00021232601736 107.984352
18904520-09-2017 17:11AB-F00021232789345 94
28654101-10-2017 17:11AS-F00021462601734 75
28685610-10-2017 17:11AS-F00021462789344 200
28685615-10-2017 17:11AS-F00021462789344 91
28685620-10-2017 17:11AS-F00021462789344 200
28685612-12-2017 16:11FM-F00021462789340 500

 

 

LatestOldPrice
GRN NumberGRN Generated DateProduct IDStoreIDPO NumberPO TypeCost PriceGRN NumberGRN Generated DateProduct IDStoreIDPO NumberPO TypeCost Price
12345626-09-2017 00:00AB-F00021232602688 110.12265618904520-09-2017 17:11AB-F00021232789345 94
28685620-10-2017 17:11AS-F00021462789344 20028685615-10-2017 17:11AS-F00021462789344 91
4 REPLIES 4
danrh
13 - Pulsar

Try something like this:

image.png

The Multi-Row Formula tool adds an incremental counter when the price changes.  The Unique tool then grabs the first of each of those increments --- the first 1 will be the latest price, and the first 2 will be the latest price where the price was different.  The Filters then grab the 1's and the 2's and Join them so you end up with a side-by-side comparison.

 

Hopefully this gets you closer.  Reach out if you need some more help!

ponraj
13 - Pulsar

Attaching a sample workflow for your case. Hope this is helpful.

 

WorkflowWorkflowResultsResults

Scheruku
8 - Asteroid

Thank you very much for your help.

Scheruku
8 - Asteroid

I have used this approach. Thank you very much.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels