Loading navigation...
Unify Automations
Logo
Analytics by UnifyApps

Analytics by UnifyApps

Logo

8 mins READ

Overview

Analytics by UnifyApps enables comprehensive data analysis and reporting capabilities. This means you can aggregate metadata, run SQL queries, and export reports in various formats (CSV, XLS or XLSX), making it perfect for generating insights, performance monitoring, and data-driven decision-making.

Image
Image

Use Cases

  1. Customer Segmentation Analysis


    Run an Analytics Query to group customers by location or purchase history using projections like count or distinct count. This can help identify key demographics and tailor marketing efforts accordingly.

  2. Multi-Source Data Integration


    Aggregate data from various sources (e.g., user activity, transaction logs, product reviews) using SQL queries by using Execute Analytics SQL Query. Join tables across multiple platforms to identify patterns and correlations, such as understanding how customer behavior correlates with product sales over time.

  3. Automated Quarterly Budget Reports


    A finance team automates the generation of quarterly budget reports using the Export Reports action. By setting time ranges and defining projections, they export summarized financial data (like revenue and expenses) in XLSX format. The reports are then shared with stakeholders for review, ensuring timely, accurate data for decision-making, and saving manual report-generation time.

  4. Retrieving Metadata for Specific Fields


    A user working within the Platform group wants to gather detailed metadata for fields such as Customer_Name, Customer_Age, and Customer_Location. They utilize the Aggregate Metadata action and specify these fields in the Add ID section.

Aggregate Metadata

Image
Image

The Aggregate Metadata action in Analytics by UnifyApps enables users to retrieve and explore detailed metadata for data fields within a specific object. It provides crucial insights into field properties such as whether they are sortable, filterable, searchable, or updatable, helping users better understand their dataset structure and enabling more efficient data handling.

Input Fields:

Image
Image
  • Group: Select between Storage or Platform to determine the data context.

  • Base Report: Choose the object to query for metadata.

  • Add ID: Specify the field name for metadata extraction.

  • Query: Enter a partial field name to retrieve related metadata. For example, entering "Cus" returns fields like Customers_Profile.

  • Page: Configure pagination with Offset and Limit.

  • Sortable: Enable if you want to retrieve fields that are sortable.

  • Filterable: Enable if you want to retrieve fields that are filterable.

Output:

The action returns detailed metadata for each field, including:

  • Aggregation Field Type

  • Display Name

  • Entity Type

  • Field Type

  • Sortable, Filterable and Searchable

  • Updatable

  • Name Field

This action simplifies data exploration, particularly for large datasets, by allowing users to understand field properties quickly without needing to manually search through the data.

Analytics Query

Image
Image

The Analytics Query action in Analytics by UnifyApps enables users to fetch, process, and analyze data from a selected base report. This action provides powerful querying capabilities, including grouping, filtering, and projecting data, along with aggregation and percentage-based calculations.

Input Requirements:

  1. Select Group: Choose between Platform or Storage to define the data grouping.

  2. Select Base Report: Choose the base report object.

  3. Select Projections:

    • Choose fields and apply aggregation functions like Count, Sum, Min/Max, Percentage Contribution, or even custom operations.

    • Assign aliases to projections for clarity.

    • Optionally, calculate percentage changes.

  4. Select Additional Projections: Add supplementary projections with similar options for fields, aggregation, and percentage change inclusion.

    Image
    Image

  5. Time Range:

    • Define a time field for the query.

    • Specify start and end times, including previous periods for comparison.

      Image
      Image

  6. Filter:

    • Create conditions using fields and values to filter data efficiently.

    • Add multiple conditions or condition groups for complex queries.

  7. Search Object:

    • Specify fields and their values to narrow down search results further.

  8. Pagination:

    • Use Offset and Limit to manage the number of records retrieved.

  9. Sorting:

    • Add fields to sort the results by specific attributes.

  10. Include Total Count:

    • Set this option to true for retrieving the total count of records matching the query.

This action allows robust customization to extract insights effectively from large datasets while offering precision in data manipulation.

Execute Analytics SQL Query

Image
Image

The Execute Analytics SQL Query action in Analytics by UnifyApps allows users to directly execute custom SQL queries against their data, providing granular control and flexibility for advanced analysis. This action supports dynamic schema definition and integration with custom workflows.

Input Fields Requirements:

  1. SQL Query:

    • Enter the SQL query to execute.

    • Prefix every table name with ENTITY_ and every column name with _pr_ to comply with the query format.
      Example: Select _pr_columnName from ENTITY_TableName

  2. Select Group:

    • Choose between Storage or Platform to define the data context.

  3. Define Result Schema:

    • Specify the structure of each row in the query response. This is essential for defining alias column names and ensuring accurate mapping.

      • Add Field: Manually add fields by specifying:

        • Key: Identifier for the field.

        • Display Label: Displayed label for the field.

        • Type: Data type (e.g., string, number).

        • Optional: Mark the field as optional.

        • Default Value: Set a fallback value.

        • Nest Under: Place the field within a hierarchical structure, if needed.

      • Use Code Snippet: Define the schema using a JSON, XML or XSD snippet.

        • Create a new snippet or select an existing one from saved options.

      • Map from Step: Map the schema directly from another automation step.

This action is ideal for advanced users who need to execute SQL queries for custom reporting, filtering, or complex data transformations while dynamically shaping the output schema.

Export Reports

Image
Image

The Export Reports action provides users with the ability to generate and export customized reports based on specified parameters. This action enables users to select data projections, filters, sorting options, and define the desired time range, along with the option to include the total record count. Users can also choose between different file formats (CSV, XLS, or XLSX) for the exported report, ensuring flexibility and compatibility with various tools. The generated report is available for download via a preview link.

Input Fields:

Image
Image
  1. File Name: Prefix for the exported file name.

  2. Select Group: Choose between Storage or Platform for the data context.

  3. Select Base Report: Choose the base report object.

  4. Select Projections: Choose fields to aggregate and customize based on required operations like sum, count, etc.

  5. Time Range: Define the start and end time for the data included.

  6. Filter: Add conditions for filtering data.

  7. Search Object: Specify fields and their values to filter results.

    Image
    Image

  8. Page: Set offset and limit for paginated data.

  9. Sorts: Define how the data should be sorted.

  10. Include Total Count: Toggle to include the total count of records.

  11. File Format: Choose between CSV, XLS, or XLSX.

This action is ideal for users who need to export formatted reports, whether for internal analysis, sharing, or integration with other systems.

Converts Filter to SQL Condition

The Converts Filter to SQL Condition action in Analytics by UnifyApps enables users to transform visual filter inputs into a SQL-compatible condition string. This allows for seamless integration of UI-based filter logic into backend SQL queries, ensuring data consistency and query efficiency.

Image
Image

Input Fields:

  • Group: Choose between Storage or Platform for the data context.

  • Base Report:Choose the base report object.
    Filter: Set conditions to define what subset of data you want to filter. You can specify:

    • Where: Enter the field name you want to apply the condition to.

    • Condition: Define condition operators such as Equals to, Start with, In etc.

    • Enter values for each condition.

    • Additional options include:

      • Add Condition: Add a new condition within the same group.

      • Add Condition Group: Create logical groups using AND/OR conditions.

      • Add Filter: Combine multiple filters for complex logic.

Output: The action returns a SQL-compatible condition string in JSON format.

Image
Image

The output condition string can be directly appended to SQL queries, such as when using the Execute Analytics SQL Query action. This enables users to dynamically inject filter conditions into custom queries, enhancing automation, flexibility, and scalability of data-driven operations.

Export SQL Query Result

The Export SQL Query Result action in Analytics by UnifyApps allows users to execute a custom SQL query on a selected group (Storage or Platform) and export the result as a downloadable file. This is useful for automating data extraction, reporting, and sharing datasets across teams or systems.

Input Fields:

  • File Name: Provide a prefix for the exported file name. The full file name will include this prefix along with a timestamp and appropriate file extension.

  • SQL Query: Write your SQL query to retrieve the desired data. You can query any available object or entity.

    Image
    Image

  • Select Group: Choose between Storage or Platform for the data context.

  • Define the Result Schema (Optional): Define the expected structure of each row in the query result. This helps in downstream automation where you may want to access specific fields. You can use:

    • Add Field to manually specify field names

    • Use Code Snippet to write custom parsing logic

    • Map from Step to auto-map schema from previous step

Output: On successful execution, the action returns the following details:

  • File Type: The format of the exported file 

  • File Name: The system-generated full filename 

  • Source: Path within cloud storage

  • Source Type: Indicates storage type 

  • Link: A secure URL to download the exported file

  • ua:type: Always returns "FILE" to indicate file object

Execute Analytics SQL Update Query

The Execute Analytics SQL Update Query action in Analytics by UnifyApps is used to modify existing records in a dataset using SQL UPDATE statements. This action is ideal for automation scenarios where dynamic updates to datasets are required based on business logic.

Input Fields:

Image
Image
  • SQL Query: Provide a valid UPDATE SQL statement to modify data in the selected group

  • Select Group: Choose between Storage or Platform for the data context.

Output:

Image
Image

On successful execution, the action returns the count of records that were updated.

FAQs

What is the purpose of the "Execute Analytics SQL Query" action?

The "Execute Analytics SQL Query" action allows you to run custom SQL queries on your data stored in UnifyApps. It helps to fetch, aggregate, or transform large datasets from connected platforms or storage systems for analysis.

What do I need to include in the SQL Query?

You need to structure your query with specific conventions like adding ENTITY_ before table names and _pr_ before column names to ensure compatibility with UnifyApps' data models.

Can I use "Execute Analytics SQL Query" for aggregating data across multiple tables?

Yes, you can use SQL queries to aggregate and join data across multiple sources or tables, helping you generate more comprehensive reports and insights.

How do I filter data in the "Analytics Query" action?

The "Analytics Query" action allows you to apply filters using conditions like "Equals to" for specific fields, allowing for more granular control over the data queried.

What is the purpose of the 'File Name' field in Export Reports?

The "File Name" field allows you to specify a prefix for the exported file name, helping with file organization and identification.

Can I export data in different formats in Export Reports?

Yes, you can export reports in CSV, XLS, or XLSX formats, depending on your preference.

What is the purpose of the Query field?

The Query field allows you to search for metadata using partial field names, helping you locate fields when their exact names are unknown.