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

Alteryx Designer Desktop Discussions

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

Looping through Data

Bobbins
8 - Asteroid

I have the following dataset. You will note that its not in any real order and that this data is added to daily

 

Cookie Jar LevelCookie JarDateCustomerShop
90Blue02-Feb-23BillyNYC
52Green03-Feb-23AnneNYC
101Red02-Feb-23GeorgeNYC
55Blue05-Feb-23SalayDenver
73Red05-Feb-23GeorgeNYC
70Blue04-Feb-23BillyNYC
42Green04-Feb-23AnneNYC
65Blue05-Feb-23BillyNYC
55Green01-Feb-23AnneNYC
80Blue03-Feb-23BillyNYC
100Blue01-Feb-23BillyNYC
85Red04-Feb-23GeorgeNYC

 

And what I need to create is data that shows the difference between the Cookie Jar Levels for each Date/Date/Customer/Shop. It could be called "Difference".

I should end up with something like this, i guess through some kind of reiterative macro given there could be a whole load of different jars shops and customers

Cookie Jar LevelCookie JarDateShopDifference
55Blue########Denver 
100Blue########NYC 
90Blue########NYC10
80Blue########NYC10
70Blue########NYC10
65Blue########NYC5
55Green########NYC 
52Green########NYC3
42Green########NYC10
101Red########NYC 
85Red########NYC16
73Red########NYC12
3 REPLIES 3
Bobbins
8 - Asteroid

Thank you in advance!

FinnCharlton
13 - Pulsar

Hi @Bobbins , shouldn't be any need for an iterative macro, you can accomplish this with just a Multi-Row formula tool: 

FinnCharlton_0-1683216433492.png

 

Bobbins
8 - Asteroid

@FinnCharlton Doh, that would be the simple option wouldn't it!

Labels
Top Solution Authors