Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
Please refere below data sample -
id
230
123
455
555
645
222
i only want those data that i have no space so which function i have to used in script level.
my expected output is
id
230
455
645
222
Thanks in advance
HI friends,
Thank u for your quik reply,
i used if() and len() function in my script i got solution of my problem.
please refer below attached extractor
Trim(id) as id
Updated : I misunderstood your requirement...! LOL
May be make use of this SET statement
SET Verbatim = 1;
and then check the field for Space -> Where Len(Trim(KeepChar(FieldName, ' '))) = 0; Where Len(KeepChar(FieldName, ' ')) = 0;
May be
Load id from source where istext (id);
Sample attached:
SET Verbatim = 1;
Table:
LOAD id
FROM
Community_203223.xlsx
(ooxml, embedded labels, table is Sheet1)
Where Len(KeepChar(id, ' ')) = 0;
may be like this at script?
if(left(ID,1)<>' ', ID) as ID
Actually you might not even need SET Verbatim = 1;
Table:
LOAD id
FROM
Community_203223.xlsx
(ooxml, embedded labels, table is Sheet1)
Where Len(KeepChar(id, ' ')) = 0;
I think it will remove spaces and display the values as well.
But he dont want to display those values, If I understood it correctly
Hi,
like this,
SAMPLE:
LOAD ID,
rtrim(ltrim(ID)) as ID1
FROM
[Trim Data.xlsx]
(ooxml, embedded labels, table is Sheet1);
output:
PFA,
Hirish
Hi Ishwar,
another solution could be:
set Verbatim=1;
LOAD id
FROM
example.xlsx
(ooxml, embedded labels, table is Sheet3) where SubStringCount(id,' ')=0;
Best regards
Andrea