Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need formula for splitting an attribut

Hi All

I need some help to find a useful function.

I have an attribut in my load called name and that is equl to articlenumber and collisize. Ex. = 1005123/4 I need only the article number, so I need to split this attribut by using a function. I could use Left(Name,7), but the problem is that article number could be with 7-8-9-10 digtigs and colliesize can also be with 1-2-3 digtigs. So I need the function that can split this attribut (name) at the "/" in my script.

Somebody that knows the solution to this?

Best regards

Bjarne

1 Solution

Accepted Solutions
gandalfgray
Specialist II
Specialist II

Hi Bjarne

Try

subfield(Name, '/', 1) As ArticleNumber

hth/gg

View solution in original post

4 Replies
Not applicable
Author

hi,

you can use subfield function

subfield(Name,'/',1)

Regards

Gilles

gandalfgray
Specialist II
Specialist II

Hi Bjarne

Try

subfield(Name, '/', 1) As ArticleNumber

hth/gg

Not applicable
Author

Thank you gentleman

Not applicable
Author

Thanks gentleman