qliksense - Qlikview Current selections box to use labels rather than table.fieldnames -
in qlik view document want change current selections information use label applied field rather table.field format.
for example
partstable.partno
would be
part number
unfortunately there's no way in current selections object. however, may have alternatives depending on requirements.
first of all, if you're happy seeing current selections text (rather having functionality of current selections object), can create text object , use expression:
=replace(getcurrentselections(), 'partstable.partno', 'part number')
this below:
the other alternative use rename
statement in load script after table loads complete. rename
allows rename single field or collection of fields using mapping table. syntax single field shown below:
rename field oldname newname
if should need rename more 1 field @ time, can expand to:
rename field oldname1 newname1, oldname2 newname2,...
more detail on syntax including using mapping table can found in qlikview installed file.
for example, put small demo:
qualify *; partstable: load * inline [ partno 100 200 300 ]; unqualify *; rename field partstable.partno [part number];
this results in:
rename
similar alias (as
) statement, except can first load of data, , rename @ end. rename field appears under new name in front-end controls (e.g. current selections etc.) however, may not suitable if have existing field named part number
in script.
Comments
Post a Comment