QlikView ETL-method for separating strings SubField

Source: Internet
Author: User

Introduction to the outset

Today, when you load data using QV, you run into some state in the column, and the information is separated by a symbol, which is not conducive to data analysis because the content in the string is itself a dimension. Search the Internet to find a solution to the method, record.

For example, in the first picture, s200,m250,r35 are all Invoice types, which need to be taken out as the dimension DIMENSION of the analysis.

You can use the following code to achieve the separation effect, take out all the Invoice type, so you can do statistical analysis of the data. Of course, the other columns will be re-data, the aggregation of the time to pay attention to.

Code
Source:Load *Inline[ID, Invoice 1, S200/M250/R35/2, M1687/A35/D879/F689/3, b33625/s55/];D estination:LoadID, NewinvoiceWhere Len(Newinvoice)> 0;LoadID, Invoice, SubField (Invoice,'/') asNewinvoice;Load *Inline[ID, Invoice 1, S200/M250/R35/2, M1687/A35/D879/F689/3, b33625/s55/];

For more bi articles, see the Bi-series essay list (SSIS, SSRS, SSAS, MDX, SQL Server) If you feel this article has helped you, please help recommend it to make it easy for others to see these articles quickly in the Biwork blog recommendations Bar.

QlikView ETL-method for separating strings SubField

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.