Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to take first two digits from number?

Dear QlikView users,

As a beginner I have a question- how to take the first two digits of the number into consideration? My ArticleNumber is 010204-02 and the first two digits tell me that it's frozen food. I made cathegories for product type and now I would like to link it with ArticleNumber.

I would appreciate help,

Have a nice day,

Beata

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Beata,

If you have not used Num() function with that field, just try

Left(ArticleNumber, 2) AS Category
so you can use it.

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Beata,

If you have not used Num() function with that field, just try

Left(ArticleNumber, 2) AS Category
so you can use it.

Not applicable
Author

Thank you , yes it works- I used it by I didn't put as Cathegory (so already existing name in script).

Great!

Have a nice day,

Beata