Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
markmccoid
Partner - Creator II
Partner - Creator II

Make selections that cancel each other

Using Qlikview 12, I have an macro that runs and makes two selections.

1. Select Placement Name and Lock it.

2. Select the Next Wednesday Date

3. Export data from chart.

The problem I'm running into is that there are times when the two selections are mutually exclusive.  So there are no transactions for the "Next Wednesday Date" sometimes.

The problem is that Qlik will just not make that Date selection and thus my export has a bunch of dates, but what I really want in that situation is NO data to be exported.

Am I missing a simple setting to allow this?

Here is my sample selection macro code:

 

sub export
  call ClearDoc
  ActiveDocument.Fields("PlacementName").Select "placement one"
  ActiveDocument.Fields("PlacementName").ToggleSelect "placement two"
  ActiveDocument.Fields("PlacementName").Lock
  ActiveDocument.Fields("InsertCalendarDate").Select 
  ActiveDocument.Evaluate("=Date(Today()+7)")
  call AML_PrintToExcel("vExportLocation", "ExportChart", "", "","CWH")
end sub

 

Labels (2)
0 Replies