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

Multi Row Formula

wonka1234
10 - Fireball

Hi,

 

Trying to get my multi formula tool working, I am trying to just select all data from "SERIES" to the first "TOTAL"  in the series column or column A.

Then I would use the select column to filter for the rows I want only (from series to total). 

I am expecting 1's beside all the CM rows so I can filter for them only.

 

Anyone help with this?

 

wonka1234_0-1658772816326.png

 

7 REPLIES 7
IraWatt
17 - Castor
17 - Castor

Hey @wonka1234,

Would you be able to provide some sample data so I can see where your formula needs changing. Currently the CM rows wont be 1 because your searching the series row above for the word "SERIES" and they are "CM". 

wonka1234
10 - Fireball

@IraWatt 

 

Hi,

 

ive attached a sample workflow with the data.

 

Thanks.

IraWatt
17 - Castor
17 - Castor

Hey @wonka1234,

I have attached what I think you were looking for. 

if LEFT([SERIES],2) = "CM"  then 1 
elseif [SERIES]= "TOTAL" then 0
else [Row-1:Select] endif

The first line checks if the current rows series first two letters is CM if yes then apply 1. It will keep Applying 1's till the first Total.

wonka1234
10 - Fireball

@IraWatt 

 

Thanks!

 

What is Series wasnt imported at the first line/header? 

 

Would it be possible to fix that so that SERIES line is the header? 

 

 

wonka1234_1-1658774873930.png

 

IraWatt
17 - Castor
17 - Castor

@wonka1234 try this:

if LEFT([SERIES],2) = "CM" OR [SERIES] = "Series"  then 1 
elseif [SERIES]= "TOTAL" then 0
else [Row-1:Select] endif

 

IraWatt_0-1658775478974.png

 

wonka1234
10 - Fireball

@IraWatt  with your first mockup file, can totla have a "1" beside it aswell? I want to include TOTAL.

wonka1234
10 - Fireball

@IraWatt 

 

I want the first "TOTAL" to have 1. everything after 0.

 

wonka1234_0-1658778387459.png

 

Labels
Top Solution Authors