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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens
Employee
Employee

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

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