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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajkumar
Creator
Creator

How to give Label name for variable in drill down

Dear all,

How to give  label name for variable in drill down ?

Drill down.PNG

 

kindly help.

1 Solution

Accepted Solutions
TimvB
Creator II
Creator II

It is not possible to give a label name to a drill-down dimension that includes a variable.

I would recommend just changing the field names in the script.

For example: 

Rename Field WeekName to [Week name];

 

However, the following workaround is possible in the front end:

1. Create a regular dimension and use this as dimension expression:

=$(=Pick(If(GetSelectedCount(WeekName)=0,'1',If(GetSelectedCount(Product)=0,'2','3'))
,'WeekName' //1
,'Product' //2
,'$(vaccountcluster)' //3
))

2. For the label, use the following expression:

=Pick(If(GetSelectedCount(WeekName)=0,'1',If(GetSelectedCount(Product)=0,'2','3'))
,'Week Name' //1
,'Product Name' //2
,'Label Name' //3
)

You can also make the 'Label Name' variable.

Hope it helps.

View solution in original post

1 Reply
TimvB
Creator II
Creator II

It is not possible to give a label name to a drill-down dimension that includes a variable.

I would recommend just changing the field names in the script.

For example: 

Rename Field WeekName to [Week name];

 

However, the following workaround is possible in the front end:

1. Create a regular dimension and use this as dimension expression:

=$(=Pick(If(GetSelectedCount(WeekName)=0,'1',If(GetSelectedCount(Product)=0,'2','3'))
,'WeekName' //1
,'Product' //2
,'$(vaccountcluster)' //3
))

2. For the label, use the following expression:

=Pick(If(GetSelectedCount(WeekName)=0,'1',If(GetSelectedCount(Product)=0,'2','3'))
,'Week Name' //1
,'Product Name' //2
,'Label Name' //3
)

You can also make the 'Label Name' variable.

Hope it helps.