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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
agigliotti

how to retrieve pivot table first dimension

Hi,

Is there a way to get the first dimension name within a pivot table?
I'd need to trigger a warning message to the user (calculation condition) in case the first dimension is not correct for that  analysis.

Could someone help me to achieve it?

Many thanks in advance for your time.

Best Regards
Andrea

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

Have you tried using the GetObjectDimension() and/or GetObjectField() functions?  They will retrieve the Dimension field label and Dimension field definition, respectively, based on the number that you pass, starting with 0.  So to retrieve information on the first field of a dimension, it would be GetObjectDimension(0) and GetObjectField(0).

View solution in original post

4 Replies
MayilVahanan

Hi @agigliotti 

in Qliksense, try like below

GetObjectDimension(0)  -> gives the first dimension field name. 

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

Have you tried using the GetObjectDimension() and/or GetObjectField() functions?  They will retrieve the Dimension field label and Dimension field definition, respectively, based on the number that you pass, starting with 0.  So to retrieve information on the first field of a dimension, it would be GetObjectDimension(0) and GetObjectField(0).

agigliotti
Author

Hi @MayilVahanan ,

Thanks for your fast reply, but unfortunately it does not works.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
agigliotti
Author

Hi @GaryGiles ,

GetObjectField(0) worked!

It return the first dimension field name as needed.

Thanks.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it