Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
carreromoto
Contributor II
Contributor II

borrar ultima fila de un reporte txt / delete last row of a txt report

Hola a todos, tengo la siguiente situación en un reporte TXT que me dejan en una ruta.

NOMBRE | APELLIDO | CEDULA
Camilo | Gomez | 123
Manuel | Escobar | 456
Andres | Segnini | 789
Herber | Carrero | 159
Duracion_Reporte: 00:10:00

¿Cómo puedo eliminar esa última fila para elaborar mi Dash sin ese dato "Duracion_Reporte"?.

Esa última fila varia tanto en tiempo de duración como en la posición de la fila, ya que es un reporte que genera un área aparte y me deja el archivo en una ruta de la red.

Gracias

**********************************************************

Hi everyone, I have the situation in a TXT file report that leaves me on a folder.

FIRST NAME|LAST NAME| ID
Camilo | Gomez | 123
Manuel | Escobar | 456
Andres | Segnini | 789
Herber | Carrero | 159
Report_Duration: 00:10:00


How can I delete that last row to prepare my Dash without that "Report_Duration"?

Thanks

Labels (3)
1 Solution

Accepted Solutions
marksouzacosta
Partner - Specialist
Partner - Specialist

Hi @carreromoto ,

Use the code recommended by @Anil_Babu_Samineni but replace MATCH with WILDMATCH:

LOAD
......
Where Not WildMatch([FIRST NAME], 'Report_Duration*');

Please let us know if that worked.

Read more at Data Voyagers - datavoyagers.net

View solution in original post

4 Replies
Anil_Babu_Samineni

@carreromoto Perhaps

Load ....

Where Not Match([FIRST NAME], 'Report_Duration');

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
carreromoto
Contributor II
Contributor II
Author

Hi, doesn't work

My code test is:

*******************************

query4_tbl_test:
LOAD
SESUNUSE,
SESUSERV,
SESUCATE

FROM [lib://cnx_File/01_Ext/HC_fileReport_202312.txt]
(txt, codepage is 28591, embedded labels, delimiter is '|', msq)

Where Not Match([SESUNUSE], 'Report_Duration')
;

STORE query4_tbl_test INTO '\\File02\APLIC\Qlik\test\01_Ext\/tbl_test.qvd';
Drop table query4_tbl_test;

****************************

marksouzacosta
Partner - Specialist
Partner - Specialist

Hi @carreromoto ,

Use the code recommended by @Anil_Babu_Samineni but replace MATCH with WILDMATCH:

LOAD
......
Where Not WildMatch([FIRST NAME], 'Report_Duration*');

Please let us know if that worked.

Read more at Data Voyagers - datavoyagers.net
carreromoto
Contributor II
Contributor II
Author

It's works... thanks 👍