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: 
sk88024
Creator
Creator

Display one field, but use another for any logic/selections

Hello,

I have two Fields mapped as below:

Period Num
P1 0
P2 1
P3 2
P4 3

 

In Filter object, I want Period to appear, but any selection should be based on the Num.

For e.g.: If I select P1, Qlik should recognize it as 0, not P1.

Any idea how to achieve this please?

 

Labels (3)
3 Replies
Ahidhar
Creator III
Creator III

something like this ?

Ahidhar_0-1703240477435.png

 

steeefan
Luminary
Luminary

Try creating a field of type Dual():

Dual(Period,Num) AS PeriodNum

Dual() combines a number and a string into a single record, such that the number representation of the record can be used for sorting and calculation purposes, while the string value can be used for display purposes.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

@steeefan suggestion is good for this case.  See this post for more suggestions on how you may control what is displayed vs what is selected. 

https://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com