Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aliasing multiple fields

Hello Everyone,

I have a number of tables like so:

Screenshot (14).png

Screenshot (13).png

Screenshot (12).png

I want to alias the fields Expenditure.Attribute field, Income.Attribute field, Payments.Attribute field and call them date in order for them to be associated. How should this be done?


Thanks in advance,

Alison

5 Replies
sunny_talwar

Not applicable
Author

Hello Sunny,

Thank you for your response.

I have created a separate excel file with columns for existing and desired field names.

But I am unsure how to implement the Mapping Table. I have tried inserting the code provided in the link you attached but I receive an error message when I attempt to load the data. This reads: Field 'Desired' not found.

I am now unsure how best to proceed, please can you help me.

marcus_sommer

In general it's not recommended to make any transformations within a crosstable-load. It's a heavy and complex process and to add further adjustments leads rather to problems or performance issues. Therefore the common solution is to make this afterwards in following loads/statements.

Beside them in your case you might get nearer to your requirement by following this pattern:

Unqualify *;

Expenditure:

crosstable(Expenditure.Date, Expenditure.Value, 1) load * from ExpenditureSource;

- Marcus

Not applicable
Author

Hi Marcus,

I am not sure that this will work as it is not that the field name has been qualified with the table name. Instead, the field name is just called Expenditure Date. It is not called Expenditure.Date.

Best,

Alison

marcus_sommer

I think you could also use this fieldname. By using spaces or any special chars a fieldname must be wrappend with double-quotes or brackets - just try it, it should work.

"Expenditure Date"

or

[Expenditure Date]

- Marcus