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: 
Not applicable

table with duplicate column names

Hi,

I have two questions need help with:

1.I have a table with two calculated "Actuals". How to specify which one to use in "YTD Remaining" calculation.

2. If I rename second "Actual" to 'YTD Actual" then I can't use is in calculations, Qlik doesn't like the space.

Is the a way to use column name and not the label in calculations?

Thanks for your help!

L

8 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

1a. Give it another name

1b. Use the column number: Column(1)+Column(4)/Column(15)

2. Use square brackets around the column name: [Actuals YTD]


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert,

It is user requirement to have the same names so I used 1b and it works.

Is there a property to see column numbers? 

jolivares
Specialist
Specialist

I prefer to use the expression as well instead of titles, in this case this not an issue.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

No, there isn't. Just count from left to right.


talk is cheap, supply exceeds demand
Not applicable
Author

One more q:

my calculation for "YTD Remaining" worked when I used second "Actuals" as column (5): 

        Budget - Column(5) - Commitments

Why?  Is Department not a numbered column?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That's correct. Only expression columns can be referrenced by number. You can reference dimensions by their field name.


talk is cheap, supply exceeds demand
Not applicable
Author

thanks again,

my last q: where can I read about it?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

In the help file in the Chart Inter Record Functions section

Column(ColumnNo)                                                                                                                                

Returns the value found in the column ColumnNo in a straight table or a pivot table.

Example:

column(1)/column(2) returns the quotient.


talk is cheap, supply exceeds demand