Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How to Select Certain Rows of Data

BrandonS4
8 - Asteroid

I am trying to pull in only certain rows of data in a spreadsheet.  I am only interested in column A and the amounts in column B.  The empty rows contain other data that I do not need.  How can I only show the lines I need?  I tried using REGEX but it wasn't working.

 

USA 
Forecast1
Collected2
  
  
CANADA 
Forecast3
Collected4
  
  
MEXICO 
Forecast5
Collected6
3 REPLIES 3
T_Willins
14 - Magnetar
14 - Magnetar

Hi @BrandonS4,

 

You can use a Filter tool on Field A of !IsEmpty().

BrandonS4
8 - Asteroid

This definitely helps.  Next I need to group by country name.  How can I pull out the amounts by country name?

T_Willins
14 - Magnetar
14 - Magnetar

You will need to pull the Country into a separate field.  A Multi-Row Formula tool is good for this as it can look at FieldB and if empty, return FieldA, otherwise copy what is in the row above in the same field (in this workflow the new field "Country").  The data can then be filtered to remove now extraneous rows.  RegEx is a great tool and I use it frequently, but in this case other tools are much easier to use.

 

Select Certain Rows.png

 

Labels