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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
subbareddykm
Creator II
Creator II

How to add

Hi all , here ,i have question,

I,m tring to get this task using qlikivew.

i have data like this. What is my requirement is

ip.PNG

First column should be freedze and for second column i want like reverse cross table.like below

op.PNG

if any column adds in second column it should gointo column level i.e should create new column.

Means my table should be like this

Load

      [Emp Id],

     Test,

     Column 1

     Column 2

     Column 3.......... and so on

From .................

Is irt possible do it ?

Help me guyzzz

1 Solution

Accepted Solutions
3 Replies
settu_periasamy
Master III
Master III

Have yoy tried with generic load..?

Use cases for Generic Load | Qlikview Cookbook

subbareddykm
Creator II
Creator II
Author

No, I don't know how to use that,

Can check with my data...?

settu_periasamy
Master III
Master III

May be Check the Attachment

Script:

T1:

LOAD [Emp ID],

     Test

FROM

generic_test.xlsx

(ooxml, embedded labels, table is Sheet1);

T2:

Generic LOAD [Emp ID],Test,'' as test Resident T1;

CombinedGenericTable:

Load distinct [Emp ID] Resident T1;

 

FOR i = NoOfTables()-1 to 0 STEP -1

  LET vTable=TableName($(i));

  IF WildMatch('$(vTable)', 'T2.*') THEN

  LEFT JOIN ([CombinedGenericTable]) LOAD * RESIDENT [$(vTable)];

  DROP TABLE [$(vTable)];

  ENDIF

NEXT i

DROP Table T1;

Capture.JPG