「1 日あたりのカスタムオブジェクトの参照回数」レシピの作成
このレシピでは、1 日あたりのカスタムオブジェクトの参照回数についてのユニーク数が作成されます。
Tableau CRM Analytics Studio の組織で、次の手順を実行します。
- [データセット] タブの [すべての項目] で [DailyAggregation] データセットを選択します。
- [グラフ] を選択します。
- [縦棒] をクリックし、[棒の長さ] は [行数] にしておきます。
- 棒の下にある [+] をクリックして、[timestamp_DMY] を探します。
- [年-月-日] を選択します。
- [検索条件] をクリックします。
- [+] をクリックします。
- [custom_entity_type] として [CustomObject] を選択します。
- [適用] をクリックします。
- [+] をクリックします。
- [operation_type] として [参照] を選択します。
- [適用] をクリックします。
- [データ] をクリックします。
- [Trellis] の下にある [+] をクリックします。
- [custom_entity] を選択します。
- [保存] をクリックします。
- レンズに「Custom Object Reads Per Day (1 日あたりのカスタムオブジェクトの参照回数)」という名前を付けます。
- PartnerIntelligence アプリケーションを選択します。
- [保存] をクリックします。
例

SAQL:
1q = load "DailyAggregation";
2q = filter q by 'custom_entity_type' == "CustomObject";
3q = filter q by 'operation_type' == "READ";
4q = group q by ('timestamp_derived_DAY_formula_Year', 'timestamp_derived_DAY_formula_Month', 'timestamp_derived_DAY_formula_Day', 'custom_entity');
5q = foreach q generate 'timestamp_derived_DAY_formula_Year' + "~~~" + 'timestamp_derived_DAY_formula_Month' + "~~~" + 'timestamp_derived_DAY_formula_Day' as 'timestamp_derived_DAY_formula_Year~~~timestamp_derived_DAY_formula_Month~~~timestamp_derived_DAY_formula_Day', 'custom_entity' as 'custom_entity', count() as 'count';
6q = order q by ('timestamp_derived_DAY_formula_Year~~~timestamp_derived_DAY_formula_Month~~~timestamp_derived_DAY_formula_Day' asc, 'custom_entity' asc);
7q = limit q 2000;