Learn how to efficiently use aggregates in OutSystems to identify top items or metrics from large datasets, enhancing decision-making and operational efficiency.

Book a call with an Expert
Starting a new venture? Need to upgrade your website? RapidDev builds Webflow websites with your growth in mind.
OutSystems provides a robust environment for building and managing applications, and one of its most powerful features is the ability to handle large datasets efficiently using aggregates. Aggregates allow you to retrieve and process data directly from the database, helping in identifying top items or metrics quickly.
Launch OutSystems Service Studio and open the application where you wish to analyze data using aggregates.
Navigate to the Data tab.
Select the entity or entities from which you want to retrieve data.
Drag the entity to the canvas area, which creates a basic aggregate with no filters or conditions applied yet.
Use the Filter option to refine your data by specifying the conditions.
Example: If identifying top-selling products, you might filter the Sales entity by a particular time range.
Use the Sorting feature within the aggregate to rank the data.
Example: To find the top 10 products by sales, sort the 'SalesAmount' column in descending order.
If necessary, group your data based on certain attributes.
Example: Group sales data by 'ProductID' to get total sales per product.
Utilize aggregation functions like COUNT, SUM, AVERAGE in combination with grouping to compute the desired metrics.
Example: SUM(SalesAmount) to determine total sales per product.
Adjust the Max Records property to restrict the number of results. Set it to the number of top items you need, such as the top 5 or top 10 items.
Run the aggregate in Service Studio to ensure it returns the expected results.
Adjust filters, sorting, and grouping as needed.
Drag and drop the aggregate onto a screen or a block where you wish to display the results.
Bind UI components to the aggregate’s output to show the data to users in a meaningful way.
By following these steps, you will be able to effectively leverage aggregates in OutSystems to extract meaningful insights from large datasets, ultimately aiding in strategic decision-making and operational efficiency.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.