Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Pedro_Rodriguez
Contributor III
Contributor III

Change labels dynamically in straight table

Hi all,

I have a bit of a challenge, I want to build a straight table whose field labels in the expressions can be changed dynamically.

The data table is called 'Data':

  

Field1OLDLabelOLD1LabelOLD2LabelOLD3
aa143632
bb253
cc33

2

I also have other table called 'Labels', containg the old field's names, the new ones, plus the tooltips for the Comments in the espressions and the field No that i'll use to show/hide columns:

    

FieldNameOldFieldNameNewNoTooltip
LabelOLD1LabelNEW11Label 1
LabelOLD2LabelNEW22Label 2
LabelOLD3LabelNEW33Label 3
LabelOLD4LabelNEW44Label 4

So, in the atached you can see both tables, and the table 'MAIN TABLE Goal' which is what i want to achieve but dynamically.

To do thath I suspect the tables Data and Labels should be joined or crossed or something.

Captura.PNG

Please could anyone help

Thx!

2 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Pedro,

Please convert first table in cross table and then simply concatenate it.

Table1:

Crosstable (FieldNameOld, Vaqlue, 1)

LOAD.

.

.

From Table1;


Concatenate(Table1)

LOAD.

.

.

From Table2;


Now you can create dynamic output as required youCaptura.PNG


Thanks,

Arvind Patil

sunny_talwar

Not sure what you mean when you say dynamically, but is this what you need?

Capture.PNG

=Only({<FieldNameOld = {'LabelOLD1'}>} FieldNameNew)