...
Introduction
In this tutorial, we will walk through setting up an Intersect sub query. A good way to think about Intersects is - use them if you need a list of something that appears in two seperate lists.
...
はじめに
このチュートリアルでは、交差サブクエリーの設定を段階的に説明します。交差は、2つの異なる一覧の両方に含まれるものの一覧が必要な場合に使用するものと考えるとよいでしょう。
このシナリオのメインレポートは、当年のキャンプに参加するアスリートの一覧です。次に、前年のアスリートの一覧を作成し、両方に参加したアスリートのみの一覧を返します。これにより、事実上、昨年のリピーターであるアスリートの一覧が作成されます。
Wiki Markup |
---|
{html}<iframe width="700" height="394" src="https://www.youtube.com/embed/clsb3vv2BhM?color=white" frameborder="0" allowfullscreen></iframe>{html} |
...
初期化
Section |
---|
Column |
---|
| 1. Click on the Create link and select Report to begin building your report.「作成」リンクをクリックして、「レポート」を選択しレポートの作成を開始します。 |
Column |
---|
|
|
|
Section |
---|
Column |
---|
| 2. You should now be on the Initialise Report page. Select the Drag and Drop Builder as the build tool. 「新規レポート作成」ページが表示されます。レポートの作成方法として、「ドラッグ&ドロップビルダー」を選択します。 |
Column |
---|
|
|
|
Section |
---|
Column |
---|
| 3. Select ビューとして「Ski Team as the View.」を選択します。 |
Column |
---|
|
|
|
...
マスタークエリー
Section |
---|
Column |
---|
|
|
|
...
交差クエリー
...
交差の作成
Section |
---|
Column |
---|
| 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 Intersect and Style to Basic. 8. Click Ok to set up the query. 「データ」ステップの左側にある「サブクエリー」パネルで「+」ボタンをクリックし、サブクエリーを追加します。 7. 「タイプ」を「交差」に、「スタイル」を「基本」に設定します。 8. 「OK」をクリックしてクエリーを設定します。 |
Column |
---|
|
|
|
...
交差の設定
Section |
---|
Column |
---|
| 9. Set the Filter on the Master Query to apply to the Athlete ID field. This is how rows to be used from the master query will be located, matching the ID field. 10. Set the To Match field on the Sub Query to be the Athlete ID field. This will list all Athete ID values to be matched to 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 a certain date range. 12. Change the name of the Sub Query to Last Year. 13. Click Save to complete the Intersect. マスタークエリー上の「フィルター」を「Athlete ID」フィールドに適用するように設定します。これにより、マスタークエリーから使用する、IDフィールドと一致するロウ(行)が特定されます。 10. サブクエリー上の「一致するフィールド」フィールドを「Athlete ID」フィールドに設定します。これにより、マスタークエリーと一致するすべてのアスリートIDの値が一覧表示されます。 11. 「Year」フィールドを「サブクエリーフィルター」一覧にドラッグします。このフィールドは、アスリートIDの一覧を特定の日付範囲に制限するために使用されます。 12. サブクエリーの名前をLast Yearに変更します。 13. 「保存」をクリックして交差サブクエリーの設定を完了します。 |
Column |
---|
|
|
|
...
設定の編集
Section |
---|
Column |
---|
| 14. If you need to make changes to your sub query setup at all, click the Edit Settings link. クエリー設定を変更する必要がある場合は、「設定の編集」リンクをクリックします。 |
Column |
---|
|
|
|
...
フィルターの適用
Section |
---|
Column |
---|
| 15. Click on the Settings link in the Filters panel. This will allow you to configure logic and values for both filters. 「フィルター」パネルで「設定」リンクをクリックします。これにより、両方のフィルターについてのロジックおよび値を設定することができます。 |
Column |
---|
|
|
|
...
マスターフィルター
Section |
---|
Column |
---|
| 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. 「マスタークエリー」フィルターで、「Year」、「の間(~)」を設定します。 17. 「値の定義」リンクをクリックして、「定義された期間」オプションを選択します。 18. 「今年(暦上)」オプションを選択して「送信・実行」ボタンをクリックします。 |
Column |
---|
|
|
|
...
サブクエリーフィルター
Section |
---|
Column |
---|
| 19. Navigate to the sub query filter by clicking on the Prior Years tab. 20. Set the filter to be filter to be Year Between 21. Click the Define Value link and select the Pre-defined Period option. 22. Select the This Calendar Year option and click the Submit button. 23. Close the Configure Filters panel. 「Last Year」タブをクリックして、サブクエリーフィルターに移動します。 20. フィルターで、「Year」、「の間(~)」を設定します。 21. 「値の定義」リンクをクリックして、「定義された期間」オプションを選択します。 22. 「今年(暦上)」オプションを選択して「送信・実行」ボタンをクリックします。 23. 「フィルターの設定」パネルを閉じます。 |
Column |
---|
|
|
|
...
保存
Section |
---|
Column |
---|
| 24. Click Report > Save to activate your report. 「レポート」>「保存」をクリックして、レポートを有効化します。 |
Column |
---|
|
|
|
Section |
---|
Column |
---|
| 25. Set the Name of your report to レポートの名前をIntersect Sub Query Tutorial.に設定します。 26. Set the Description to 説明をThis report was written using the Sub Query Tutorial.に設定します。 27. Select Tutorial as the Category. カテゴリーとして「チュートリアル」を選択します。 28. Select Training as the Sub Category. サブカテゴリーとして「トレーニング」を選択します。 29. Click Activate to finish. 「有効化」をクリックして終了します。 |
Column |
---|
|
|
|
Section |
---|
Column |
---|
| 30. You now have an active Intersect Sub Query report. これで、有効化された交差サブクエリーレポートが設定されました。 |
Column |
---|
|
|
|