--- title: "Transformation Tasks in Rules Engine" slug: "transformation-tasks-in-rules-engine" updated: 2026-11-27T13:57:01Z published: 2026-11-27T13:57:01Z canonical: "support.gainsight.com/transformation-tasks-in-rules-engine" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Transformation Tasks in Rules Engine Gainsight NXT This article supports Gainsight NXT, the next evolution of the Customer Success platform. If you are using Gainsight CS Salesforce Edition, you can find supporting documentation by visiting the home page, and selecting CS > Salesforce Edition. Not sure what your team is using? Click [here](/docs/ja/transformation-tasks-in-rules-engine#). 重要 - 画像/情報は四半期ごとのリリースで更新されます! 四半期ごとのリリースにて、最新の機能・情報を反映し、画像を含めた情報は更新されます。 This article explains how you can create Transformation tasks in Rules Engine. ## Advantages - A very powerful aggregation machine in Rules Engine. - Enables you to summarize data in various methods. - Enables you to aggregate data, apply various formulae on data. For more information about the Formula Fields, refer to the [*Formula Fields in Rules Engine*](/v1/docs/ja/formula-fields-in-rules-engine) article. ![Matrix data_1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Matrix_data_1(1).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=YGp%2FEtU63U2fXYEG0138FUbMHJDxlJTE5A4rLA5MLq4%3D) - A Rule is demonstrated here and in this rule, you can count unique Pageviews for every page by different customers. ## Create Rule To create a Rule: 1. Navigate to **Administration** **> Rules Engine**. 2. Click **Create Rule**. 3. In the **Create Rule** screen, enter: - **Rule For**: Company - **Rule Name** Use Case - **Folder**: Select a folder for the rule. - *(Optional)* **Description:** Enter a description for the rule**.** [Embedded content](https://player.vimeo.com/video/565509354) 1. Click **NEXT**. The **Setup Rule** screen is displayed. 2. Click **DATASET**. ![Snag_1d705610.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Snag_1d705610.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=gOKrX9jJT178WJ9PiIVoEYY7Hj2CxFUT%2B%2BNlDVdZUts%3D) ### Configure DataSet (Fetch Task) 1. In the Dataset task, enter: - **Task Name** - *(Optional)* **Task Description** 2. Select **Usage Data** as the source object. **Note:** Usage Data is a Custom object. If you do not find this object in the Objects list, you have to create the Object. Refer to the Gainsight Data Management article to learn how to create, Custom Objects, Custom Fields, and insert data into Custom fields. ![Usage data.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Usage_data(1).gif?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=FAXpskyGpZuGgaOoCpBAKf6HCDdA%2FfMNrg01nviawNU%3D) 3. Add the following fields, in the **Show** section. - Date Field - GS Created Date - GS Modified Date - Views - Page name - Company Name 4. Click **SAVE**. 5. Click **<- ,** to go back. ![Save.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Save(1).gif?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=ffBtA%2BvEFFquy%2BeFrvLUoUze03l4hHKQ6zGXVuDNg4o%3D) ### Transformation Task - Data Aggregation In the aggregation task, page views are aggregated against Company and Page name, in order to view unique page views for every page by various customers. 1. In the Setup Rule screen, navigate to **+ TASK >** **Transformation**. ![Transformation_7.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Transformation_7(1).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=iI%2Fop3aBBj4pkFJin%2BMkMxwjj0905vlJSG8hSYbdZUo%3D) 2. Enter: - **Task Name** - *(Optional)* **Task Description** 3. Select **Fetch data** as the source object of the dataset. 4. Add the following fields to the **Show** section: - Company Name - Page Name - Views 5. Add Company Name to the **GroupBy** section. ![Groupby_8.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Groupby_8(1).gif?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=1hQ2j%2FoXAuyPNgJ4L%2FLZVD0Jy0p3iSlOEfKV6mXYydo%3D) 6. Select **Count_distinct of views** for **Views** field, in the **Show** section. ![Distinct of views_9.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Distinct_of_views_9(1).gif?sv=2026-02-06&spr=https&st=2026-11-30T20%3A18%3A24Z&se=2026-11-30T21%3A18%3A24Z&sr=b&sp=r&sig=ti6tK3rk7Lrdk9YVEc%2Bff7AHbs4ihFPL0ltFkOKlqgo%3D) 7. Click **SAVE**. You can now set up an **Action** on the output dataset. **See Also**: - [*Rules Create Tasks in Rules Engine*](/v1/docs/ja/create-tasks-in-rules-engine) - [*Merge Tasks using Rules Engine*](/v1/docs/ja/merge-tasks-using-rules-engine) - [*Pivot Tasks in Rules Engine*](/v1/docs/ja/pivot-tasks-in-rules-engine) - [*Aggregate* *Usage Data with Rules Engine*](/v1/docs/ja/aggregate-usage-data-with-rules-engine) - [*Formula Fields in Rules Engine*](/v1/docs/ja/formula-fields-in-rules-engine)