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.

Multi Row Formula - Group by count

cmohyi
7 - Meteor

Hi all. I'm looking to use the multi row formula tool to count some records.

 

As you can see below, I want to group by Name and Date. I want the first record (min date for each unique Name) to be 1, and count the number of months afterwards. The min date will be different for each name, so I'd like it to be as dynamic as possible. I know I need to group by those two fields but I'm not sure what the expression should be.

 

Thank you in advance for your help!

Cameron

 

NameDateMonth Number
A3/31/231
B 3/31/231
A4/30/232
B4/30/232
A5/31/233
A6/30/234
C3/31/231
2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Sounds like a good case for the Tile tool! Here's a workflow to help:

BRRLL99
11 - Bolide

If you group data based on column names , Multi-row formula will sort data as per descending order

 

You can try this Formula without using Group by

 

IF [ROW-1:DATA] != [DATA]

THEN 1

ELSE [ROW-1:MONTH NUMBER]

ENDIF

 

please update column names accordingly as per your dataset

Labels
Top Solution Authors