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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetObjectField Syntax

Hi,

I have an Object with ID CH28 and i need to pull the entire column 3 (index 3 if i am not mistaken). I am having issues using the GetObjectField function. Can someone please help me with the syntax ,

eg (see below)

CH 28 [Object id  and need to pull values for xyz column]

Header 1Header 2xyzHeader 4Header 5

..

.

.

.

.

1

2

4

5

Thank you for the assistance,

Best,

Nik

1 Solution

Accepted Solutions
sorrakis01
Specialist
Specialist

Hi,

I think in simple table doesn't works. Change the object (try in a chart table (straight or pivot) ).

Remember the index starts at 0 in your case it's =GetObjectField(2,'CH28')

Regards

View solution in original post

5 Replies
sorrakis01
Specialist
Specialist

Hi,

I think in simple table doesn't works. Change the object (try in a chart table (straight or pivot) ).

Remember the index starts at 0 in your case it's =GetObjectField(2,'CH28')

Regards

Not applicable
Author

Thank you. So if i write =GetObjectField(2,'Objectid') as an expression in a separate straight table or a chart , I will have the entire column with index 2 pulled in? Thanks again for your help.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

GetObjectField() returns the Field name, not the contents. If you want the values in that column, something like this:

=concat(DISTINCT $(=GetObjectField(1,'CH51')),',')

-Rob

http://masterssummit.com

http://robwunderlich.com

pratap6699
Creator
Creator

GetObjectField() returns the Field name or groupname, not the contents.

ex:GetObjectField(index,'objectid') it returns the specific field or group from index on object

Not applicable
Author

Thank you for the help, Appreciate it.