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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
rdsuperlike
Creator
Creator

how to

how to do:

from ert234.55, 342er.345 or TRW345.12345 get string before .

so i want ert234, 342er , TRW345 and so on.

Labels (1)
1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

In a load statement in a load script:

LOAD

      SubField( aField , '.' , 1 ) AS BeforeDot

      .....

FROM

     .....;

In the application:

=SubField( aField, '.' , 1 )      in an expression in a chart

Or if you have the strings in variables:

=SubField( aVar , '.', 1 )

View solution in original post

3 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Use the function SubField(text, N) and set N=1

cheers,

Oleg Troyansky

QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense

Ask me about Qlik Sense Expert Class!
petter
Partner - Champion III
Partner - Champion III

In a load statement in a load script:

LOAD

      SubField( aField , '.' , 1 ) AS BeforeDot

      .....

FROM

     .....;

In the application:

=SubField( aField, '.' , 1 )      in an expression in a chart

Or if you have the strings in variables:

=SubField( aVar , '.', 1 )

Qrishna
Master
Master

see attached.

Capture1.PNG