Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

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

Tags (2)
5 Replies

Re: Aliasing multiple fields

Not applicable

Re: Aliasing multiple fields

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.

Re: Aliasing multiple fields

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

Re: Aliasing multiple fields

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

Re: Aliasing multiple fields

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

Community Browser