Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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