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

Select Records - up to certain unique named value

dataviolet
7 - Meteor

Hello all,

 

I have an input data that looks like this:

 

Item DescriptionAmount
item 1#
item 2#
item 3#
subtotal#
more items#
more items#
more items#
more items#
total#

 

 

The input file constantly has more rows added to the file, that roll up into the subtotal/totals. How do I formulate a Select Records tool to only select up to the subtotal row, and ignore everything after the subtotal, given that there will constantly be rows added or removed to the input file?

2 REPLIES 2
BrandonB
Alteryx
Alteryx

Here is an easy approach. You make a flag with a formula tool followed by a running total, and finally a filter to isolate the desired records. Workflow is attached for your reference. 

 

subtotal.png

dataviolet
7 - Meteor

awesome, thank you so much!

Labels
Top Solution Authors