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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

How to Transform the Data in QlikView?

ACCESSNTNAMEREDUCTIONREDUCTIONTYPENAMEIDReduction ObjectRed_data
USERA1ACCABC123A151234
USERA1ACCABC123A2123
USERA1ACCABC123A3456
USERA1ACCABC123A4*
USERA1ACCABC123A5*
ADMINB2ACCXYZ100A15*
ADMINB2ACCXYZ100A2*
ADMINB2ACCXYZ100A3*
ADMINB2ACCXYZ100A4*
ADMINB2ACCXYZ100A5*

Transform the above source document into the following in QlikView:

ACCESSNTNAMEREDUCTIONREDUCTIONTYPENAMEIDA15A2A3A4A5
USERA1ACCTABC1231234123456**
ADMINB2ACCTXYZ100*****
2 Replies
stephencredmond
Partner - Specialist II
Partner - Specialist II

Hi,

Use a Generic Load:

Generic Load * INLINE [

ACCESS,NTNAME,REDUCTION,REDUCTIONTYPE,NAME,ID,Reduction Object,Red_data

USER,A,1,ACC,ABC,123,A15,1234

USER,A,1,ACC,ABC,123,A2,123

USER,A,1,ACC,ABC,123,A3,456

USER,A,1,ACC,ABC,123,A4,*

USER,A,1,ACC,ABC,123,A5,*

ADMIN,B,2,ACC,XYZ,100,A15,*

ADMIN,B,2,ACC,XYZ,100,A2,*

ADMIN,B,2,ACC,XYZ,100,A3,*

ADMIN,B,2,ACC,XYZ,100,A4,*

ADMIN,B,2,ACC,XYZ,100,A5,*

];

It does actually create several tables but they will be functionally equivalent to what you are looking for (which can be seen by showing them in a table box).

Not sure that it will work perfectly in Section Access, but it should.

Regards,

Stephen

hkg_qlik
Creator III
Creator III
Author

Does anyone has a better solution?

The base table will be expanding regularly.

Regards,

H