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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add field with table name

Hi,

Anybody knows how to add a field with the table name?

Thanks a lot 

Tania

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi,

     Try likethis,

     Load *, 'Table1' as Field1 from file.qvd;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan
MVP
MVP

Hi,

Use Qualify in script;

Qualify B;

Load A,B from x.csv;

Load A,B from y.csv;

The two tables x.csv and y.csv are joined only on A. Three fields will result: A, x.B, y.B.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Actually, I need the table name in a field, like this:

Table1:

Load

Field1,

Field2

From file.qvd

and one of the fields, say Field1, has only the value 'Table1'

Thank you

MayilVahanan
MVP
MVP

Hi,

     Try likethis,

     Load *, 'Table1' as Field1 from file.qvd;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

D'oh! I didn't think in that

Thank you very much!