Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

how to use Multi Row Formula based on ID and Status

manjarigoyal1975
7 - Meteor

I have a table in which I have multiple locations and each location has a specific Task ID (1 to 12). I need to group by locationID and fill the column Ready to work where if any Status is New or In progress after the Closed. Below is the template. I am looking for how to populate the Column ReadyToWork as shown below.

 

Task NumberLocation IDStatusReadyToWork
1AClosed 
2AClosed 
3AN/A 
4AClosed 
5AClosed 
6AClosed 
7AN/A 
8AClosed 
9AClosed 
10AClosed 
11AClosed 
12ANewReadyToWork
1BClosed 
2BClosed 
3BN/A 
4BClosed 
5BClosed 
6BClosed 
7BN/A 
8BClosed 
9BNewReadyToWork
10BNew 
11BNew 
12BNew 
1CClosed 
2CClosed 
3CN/A 
4CClosed 
5CIn ProgressReadyToWork
6CNew 
7CNew 
8CNew 
9CNew 
10CNew 
11CNew 
12CNew 
1DClosed 
2DClosed 
3DN/A 
4DClosed 
5DIn ProgressReadyToWork
6DNew 
7DClosed 
8DNew 
9DNew 
10DNew 
11DNew 
12DNew 
6 REPLIES 6
apathetichell
18 - Pollux

Hi,

 

so the way how I read this it was any "new" after the last "closed" but in location D there is an "In Progress" that comes before a "Closed". Also - do all of the entries get "ReadyToWork" or just the first.

ArtApa
Alteryx
Alteryx

Hi @manjarigoyal1975 - Here is a sample:

 

ArtApa_0-1623886485086.png

 

manjarigoyal1975
7 - Meteor

@ArtApa  In Location ID "D" In Progress comes first after closed and New comes later then "Ready To Work" should only display on the row of In Progress, not on the Row  New.

DawnDuong
13 - Pulsar
13 - Pulsar

Hi @manjarigoyal1975 

The trick is to use the cumulative count (with the Multirow tool). I attached an example which gives the same desired results.

Good luck,

Dawn.

apathetichell
18 - Pollux

And here's how to do it without a multi-row formula....

2021-06-17 (5).png

manjarigoyal1975
7 - Meteor

Thankyou. It is working exactly the way I wanted it.

Labels