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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.

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
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