Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Apply If..Then to All objects?

I am trying to automate the creation of an Agenda via Nprinting and in order to do that, I need to return any DEFECT_ID in which there is a match on the Decision Body and Associated Agenda Date.

For example, in the ticket below, it should be on the list because I am looking for ECG as the Decision Body and the Agenda Date of 1/8/2018.

What's the best way to create this logic so that ALL objects only show the relevant DEFECT_IDs?

In the attachment, two tables show the right logic but if I set NPrinting to Page on DEFECT_ID, it won't capture the correct ones.

All I can think of is a really long if statement:

=if(PRIMARY_DECISION_BODY='ECG' and PRIMARY_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY'),1,
if(SECONDARY_DECISION_BODY='ECG' and SECONDARY_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY'),1,
if(THIRD_DECISION_BODY='ECG' and THIRD_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY') ,1,
if(FOURTH_DECISION_BODY='ECG' and FOURTH_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY'),1,
if(FIFTH_DECISION_BODY='ECG' and FIFTH_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY') ,1,
if(SIXTH_DECISION_BODY='ECG' and SIXTH_DECISION_AGENDA_DATE=date(Min({$<AGENDA_DATE={">$(=today())"},GOV_DECISION_BODY_SUB={'ECG'}>}AGENDA_DATE),'MM/DD/YYYY')
,1,0))))))

12-18-2017 12-27-20 PM.jpg

It should return only 6 tickets. As you can see in the Business Case chart, many more are being displayed and the DEFECT_ID list box doesn't show the right defects.

12-19-2017 8-07-44 AM.jpg

TIA

4 Replies
Anil_Babu_Samineni

Is there any thing need still? Or you already got something? And your thread context from QlikView and your settings using N printing. Not sure, I followed you or not

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
cbaqir
Specialist II
Specialist II
Author

The issue is not resolved. The chart below still shows many defects that should not be showing:

This is ultimately a QV issue because the charts will be pulled into NPrinting. Nprinting creates a new tab or page for each set field - like DEFECT_ID. Therefore, I need the selected/associated Defects to be limited to the 6 above.

12-19-2017 8-07-44 AM.jpg

cbaqir
Specialist II
Specialist II
Author

Maybe I can ask another way... is there a way I can create a variable perhaps to only show me the relevant DEFECT_IDs?

Ultimately I need selection criteria to filter out the DEFECT_ID field.

cbaqir
Specialist II
Specialist II
Author

Trying to delete this post to move to an Nprinting thread but I don't have the rights.