Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

Export same column headres

Hi,

In my CSV i have same column headers,

say

ID,

USER,

USER

I need to export this to qlikview. How can i do this

1 Solution

Accepted Solutions
sunny_talwar

I think by default QlikView will consider first USER as USER and second instance of USER as USER1. So Your second method is just default. To get the first option, may be this?

LOAD ID,

          USER & '-' & USER1 as USER

FROM ...

View solution in original post

8 Replies
sunny_talwar

May be something like this?

Table:

LOAD ID,

          USER

FROM Source.csv;

Concatenate (Table)

LOAD ID,

          USER1 as USER

FROM Source.csv;

anuradhaa
Partner - Creator II
Partner - Creator II
Author

My CSV is like this,

 

IDUSERUSER
434ereteyyhthtg
3453245etetfhh
35rtrt
sunny_talwar

What is the output you are expecting while loading this into QlikView?

Anonymous
Not applicable

Hi,

You can try this:

Table:

LOAD ID,

          USER,

          USER as USER_1

FROM Source.csv;

anuradhaa
Partner - Creator II
Partner - Creator II
Author

Load

ID,

User " - " User as USER

Or

Load

ID,

User as User 1

User as User 2

sunny_talwar

I think by default QlikView will consider first USER as USER and second instance of USER as USER1. So Your second method is just default. To get the first option, may be this?

LOAD ID,

          USER & '-' & USER1 as USER

FROM ...

varshavig12
Specialist
Specialist

By default QlikView will consider it as USER 1

Directory;

LOAD ID,

     USER,

     USER1

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet1);

n then you can use alias

Directory;

LOAD ID,

     USER as USER1,

     USER1 as USER2

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet1);

this is for data from Excel.

PradeepReddy
Specialist II
Specialist II

try like this...

Test:

LOAD A as ID,

     B as User1,

     C as User2

FROM

Test.xlsx

(ooxml, explicit labels, header is 1 lines, table is Sheet1);

Note: I have taken  Data in Excel instead of CSV file