Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Delete lines which begin with "Sum"

Hello !

I have an excel file and I want to delete every lines which begin by "Sum". How can I do that ?

Thank you 😃

Annie

2 Replies
danielrozental
Master II
Master II

Look into the string functions part of the help, there are several you can use.

Something like

where index(field,'Sum') <> 1

swuehl
MVP
MVP

Hi Annie,

you might use the load filter in the script.

It probably looks like:

filters(

Remove(Row, RowCnd(CellValue, 1, StrCnd(start, 'Sum')))

)

(i.e. snippet from

LOAD *

FROM

[Data.xlsx]

(ooxml, embedded labels, table is Quota, filters(

Remove(Row, RowCnd(CellValue, 1, StrCnd(start, 'Sum')))

));

If you use the table wizard in the script editor, there is a dialog for transformation steps, use conditional delete and set your requirements.

Stefan