Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. New Features and Behavior Changes
  4. Repositories
  5. XML Data Source
  6. Tests for XML Data Sources
  7. Connections
  8. Expressions
  9. Table Pairs
  10. Tests for Table Pairs
  11. Single-Table Constraints
  12. Tests for Single-Table Constraints
  13. Examples of Tests from Spreadsheets
  14. SQL Views
  15. Lookup Views
  16. Join Views
  17. Aggregate Views
  18. Business Intelligence and Reporting Tools Reports
  19. Dashboards
  20. DVOCmd Command Line Program
  21. Troubleshooting
  22. Datatype Reference
  23. Reporting Views
  24. Metadata Import Syntax
  25. Jasper Reports
  26. Glossary

Data Validation Option User Guide

Data Validation Option User Guide

Group By Columns

Group By Columns

You can define groups for aggregations in the aggregate views, instead of performing aggregations across all input data. For example, you can find the total sales grouped by region, instead of finding the total company sales.
To define a group for the aggregate view, select the appropriate column in the aggregate view editor. You can select multiple group by columns to create a new group for each unique combination.
When you group values, Data Validation Option produces one row for each group. If you do not group values, the Data Validation Option returns one row for all input rows. Data Validation Option returns the last row of each group or the last row received with the result of the aggregation.
When selecting multiple group by columns in the aggregate view, Data Validation Option uses column order to determine the order by which it groups. Order group by columns to ensure the appropriate grouping because group order can affect the results. For example, the results of grouping by DATE then PRODUCT_NAME can vary from grouping by PRODUCT_NAME then DATE.