Alteryx Designer Desktop Discussions

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

.txt file data cleaning

BRRLL99
11 - Bolide

Hi Team,

 

I have following data in .txt file(attached), my expected output also been attached

 

since data is in .txt for input i used \0( all data coming in one column) , \s(data coming in 16 columns)

 

REPORT ID: BSS-120 data needs to be ignored(for sample i have shown only BSS-120, it can BSS-130, 990 etc)

 

as shown in the sample input, for REPORTING FOR: 100157 ABC RQSTZ there is no total values, when there is no total values it should be blank.

 

I'm looking to get the result as shown in expected output( different variety is also acceptable), I need to join reporting for column with other dataset.

 

 

Input file name : SAMPLE

 

EXPECTED OUTPUT (Alteryx):

REPORT DATEREPORT IDSETTLEMENT CURRENCYREPORTING FORROLLUP TOFUNDS ARQ ENTITVALUECOUNTCREDIT AMOUNTDEBIT AMOUNTTOTAL AMOUNT
24Dec23BSS-110MYR100157 ABC RQSTZ200167 RTCQ SUMQ200289 RQC BARR M'SIA     
24Dec23BSS-110MYR199157 ABC RQSTZ280167 RTCQ SUMQ271289 RQC BARR M'SIAINTERCHANGE VALUE    
      TOTAL ACR178144,473.61580234,918CR
      TOTAL ISSR00  
      TOAL OTHER0000
      TOTAL INTERCHANGE VALUE178144,473.61580234,918CR
      RECHARGE VALUE    
      TOTAL ACR188104,479.61589234,918CR
      TOTAL ISSR0000
      TOAL OTHER0000
      TOTAL RECHARGE VALUE188104,479.61589234,918CR
      CARD CHARGES    
      TOTAL ACR143124,479.6189134,918CR
      TOTAL ISSR0   
      TOAL OTHER0   
      TOTAL CARD CHARGES143124,479.6189134,918CR
24Dec23BSS-110JPY399157 ABC RQSTZ480167 RTCQ SUMQ570289 RQC BARR M'SIAINTERCHANGE VALUE    
      TOTAL ACR108104,473.61480934,918CR
      TOTAL ISSR0000
      TOAL OTHER0000
      TOTAL INTERCHANGE VALUE108104,473.61480934,918CR
      RECHARGE VALUE    
      TOTAL ACR188104,079.61509834,918CR
      TOTAL ISSR0000
      TOAL OTHER0000
      TOTAL RECHARGE VALUE188104,079.61509834,918CR
      CARD CHARGES    
      TOTAL ACR148124,479.6189134,918CR
      TOTAL ISSR0000
      TOAL OTHER0000
      TOTAL CARD CHARGES148124,479.6189134,918CR

 

 

3 REPLIES 3
gawa
15 - Aurora
15 - Aurora

hi @BRRLL99 Thank you for you private message you sent to me yesterday. According to your request, I surely looked into your case.

It is pars-able by using a lot of tools like this. I recommend to parse separately for LEFT part and RIGHT part, and JOIN them later.

Hope this snapshot will inspire you so you can achieve your demand by yourself. 

image.png

 

At the end, I regret to say that private message should not be used for asking somebody for providing/expediting the solution. This is public community, and we help each other on a voluntary basis....in my humble opinion😅 

BRRLL99
11 - Bolide

Noted!
this my first time working with .txt file, please share the workflow . It would be immensely helpful to understand the process you're referring to

 

gawa
15 - Aurora
15 - Aurora

@BRRLL99 Here you go.You will see how to read .txt file without Input tool, too.

Labels