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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mayankraoka
Specialist
Specialist

Get possible field issue

Hi All,

I am having issue to get possible fielid value.

In my scenario,I have  sales metric which is visible only when my customer is XYZ. So that I am checking in if condition for all the possible values XYZ is associated then only we get the value.

I am aware of function getpossiblecount but it gives only count there is no function like get-possiblevalue for that field .

Can anyone tell me the way I can check the condition?

Regards,

Mayank

11 Replies
sunny_talwar

When HOF is in selection

Capture.PNG

When HOF is not in selection

Capture.PNG

Expression used is

SubStringCount(Concat(DISTINCT '|' & CM & '|', ','), 'HOF')

So when HOF is within the selection bucket, you will see 1, else you will see 0.

Alternatively, you can also try playing with this:

=Count(DISTINCT {<CM *= {'HOF'}>} CM)

akshayjain90
Contributor II
Contributor II

Hi Mayank,

Please try the below expression -

=if(sum({$<CT=p({<CM={'HOF'}>}CT)>}sales)>0,1,0)

Regards,

Akshay