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.

REMOVING THE ROWS WITHOUT CLEAR IDENTIFIER

dunkindonut7777
8 - Asteroid

Hi I find it difficult to remove the rows that are not needed in the data, these rows do not have specific basis in filtering out using filter tool. This data is sample only and it  has 2000 lines in total and I really find it difficult to remove these unnecessary rows.\

 

Raw data:

dunkindonut7777_0-1643639971807.png

NumberDescrAmount
11000-05ARISING FROM REPURCHASE               500.00
11000TOTAL INTERBANK               500.00
   
11000TOTAL INTERBANK LOANS RECEIVABLE               500.00
   
11410-99   LOANS & DISCOUNTS               400.00
11410-88   LOANS & DISCOUNTS-DEMAND LOANS               600.00
11410TOTAL L & D-DEMAND LOANS            1,000.00
   
11410TOTAL L & D-DEMAND LOANS DISCOUNTS            1,000.00
   
11420-99   LOANS &DISCOUNTS-BILLS DISCNTED               400.00
11420TOTAL LOANS & DISCOUNTS-BILLS                400.00
   
11420TOTAL LOANS & DISCOUNTS-BILLS DISCOUNTED               400.00

 

Expected output:

NumberDescrAmount
11000-05ARISING FROM REPURCHASE     500.00
11000TOTAL INTERBANK     500.00
11410-99   LOANS & DISCOUNTS     400.00
11410-88   LOANS & DISCOUNTS-DEMAND LOANS     600.00
11410TOTAL L & D-DEMAND LOANS  1,000.00
11420-99   LOANS &DISCOUNTS-BILLS DISCNTED     400.00
11420TOTAL LOANS & DISCOUNTS-BILLS      400.00

 

I want to remove the one with the grand total, the one I highlighted with. Is there any other way to remove it?

(I also attached the sample file). Can you help me with this one pls?

4 REPLIES 4
Luke_C
17 - Castor

Hi @dunkindonut7777 

 

Here's how I'd do this:

 

  1. Filter out empty rows
  2. Remove duplicates on number column. The unique tool keeps the first instance, so the grand total for each section gets removed

 

Luke_C_0-1643640424435.png

 

 

 

apathetichell
18 - Pollux

You can filter for the word total in Descr - but really this is specific to your data and your data formats and you could easily drop a needed row with the total in the Descr. the blank rows are filtering for where !isempty([number])

 

Rethinking this- you can definitely breakdown your GL or other codes into stems (like 11000) - you can then find the last/max value in those categories and assume they are subtotals (and other descriptions with the word total in it are regular descriptions). You can then filter. Or as pointed out by @Kenda you can use multi-row formula if spacing is standard.

Kenda
16 - Nebula
16 - Nebula

Hi @dunkindonut7777 

 

Will it always be the case that the row you want to filter out will have a blank row above and below it? If this is true, you could use a Multi-Row formula tool to create a new field that will identify rows that are blank above and below then use a filter after that on that new field to get rid of those rows with the identifier. Hope this helps!

 

Resource on Multi-Row formula tool: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Multi-Row-Formula/ta-p... 

atcodedog05
22 - Nova
22 - Nova

Hi @dunkindonut7777 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643641464956.png

 

Hope this helps : )

 

Labels