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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

How to find out we have a data for a particular Source Type for a particular month against the KeyField.

Hi,
Imagine I have field called "Source_Type" which contains value like 'X','Y' and 'Z'.We have a key field in our table which called as %KeyItem. I want to know whether we have data for each of the above Source_Type against the %KeyItem against the month of June. If it is available we will mark is as "Yes" and if not is not available we will mark it as "No".

Can someone please help me to achieve this?

4 Replies
its_anandrjs
Champion III
Champion III

Try like

Load

Source_Type,

%KeyItem,

if( Match( Right( %KeyItem&Source_Type,1),'X','Y','Z' )  and Month = Month(Today() ) ,'Yes','No') as MarkFlag

From Location;

qlikviewforum
Creator II
Creator II
Author

Thank You!

We cannot do at the load script level. We would like to do at the chart level. Please suggest

Not applicable

try this:

if(count({<SourceType={'X'}>} %KeyItem) > 0, 'YES',

     if(count({<SourceType={'Y'}>} %KeyItem) >0,'YES',

          if(count({<SourceType={'Z'}>} %KeyItem) > 0,'YES'),'NO'))

jagannalla
Partner - Specialist III
Partner - Specialist III

Use below expression in chart but  it works based on dimension what you had taken

if(Match( Right(%KeyItem&Source_Type,1),'X','Y','Z')  and Month = 'Jun' ,'Yes','No')