30日間の無料評価版をお試しいただけます。

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
classcontents

Introduction

Styleclass
ClasstopLink

top

...

In this scenario our main report will have a list of athletes that attended camps in the current year. We will then remove athletes from that list that are in the minus list (athletes from prior to the current year), leaving us with only athletes attending camps for the first time this year.

Initialise

Styleclass
ClasstopLink

top

...

Section
Column
width30%

3. Select Ski Team as the View.

Column
width70%

Master Query

Styleclass
ClasstopLink

top

Section
Column
width30%

4. Drag and drop the Athlete ID, First Name, Last Name, and Date of Birth dimensions into the Columns list.

5. Drag and drop the Year dimension into the Filters list.

Column
width70%

Minus Query

Styleclass
ClasstopLink

top

Create Minus

Section
Column
width30%

6. Click on the + button in the Sub Query panel to the left of the Data step to add a Sub Query.

7. Set the Type to Minus and Style to Basic.

8. Click Ok to set up the query.

Column
width70%

Configure Minus

Section
Column
width30%

9. Set the Filter on the Master Query to apply to the Athlete ID field. This is how rows to be removed from the master query will be located, matching the ID field.

10. Set the Exclude field on the Sub Query to be the Athlete ID field. This will list all Athete ID values to be removed from the master query.

11. Drag the Year field into the Sub Query Filters list. This will be used to restrict the list of Athlete IDs to remove to a certain date range.

12. Change the name of the Sub Query to Prior Years and the description to Remove all customers from previous years to create a list of new customers for the current year.

13. Click Save to complete the Minus.

Column
width70%

Edit Settings

Section
Column
width30%

14. If you need to make changes to your sub query setup at all, click the Edit Settings link.

Column
width70%

Apply Filters

Styleclass
ClasstopLink

top

Section
Column
width30%

15. Click on the Settings link in the Filters panel. This will allow you to configure logic and values for both filters.

Column
width70%

Master Filter

Section
Column
width30%

16. Set the Master Query filter to be Year Between

17. Click the Define Value link and select the Pre-defined Period option.

18. Select the This Calendar Year option and click the Submit button.

Column
width70%

Sub Query Filter

Section
Column
width30%

19. Navigate to the sub query filter by clicking on the Prior Years tab.

20. Set the filter to be Year Less than or equal to

21. Click the Define Value link and select the Pre-defined Period option.

22. Select the Calendar Year Start option and click the Submit button.

23. Close the Configure Filters panel.

Column
width70%

Save

Styleclass
ClasstopLink

top

...