Statistics
The .one data model offers flexible structures for collecting datasets to support various statistical analyses.
Each analysis, associated with a specific phenomenon, is defined by a statistical type (StatType
), which
determines whether measures are expressed as quantities (using a defined unit of measurement) or as amounts
(using a specified currency).
Statistics can be targeted to different locations, such as dashboards, customer profiles, or item records,
as defined by the StatTargetLocation
dictionary.
Depending on the nature of the data, each statistic can be visualized with the most suitable chart type.
For instance, overlapping line charts are ideal for comparing sales trends to targets, while pie charts are better suited for showing sales distribution by customer group.
📄️ listStats
Returns a list of all statistical analyses configured for the organization and the application.
📄️ getSalesStatsDataset
Returns the sales statistics dataset for the given statistic ID. The statId must be a valid statistic ID which