> For the complete documentation index, see [llms.txt](https://docs.datasuite.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasuite.vn/english/features/data-modeling/measures.md).

# Measures

**Measures** are quantitative indicators calculated from data within a **Schema**. When you create a report or chart, the system calculates these measures based on specified filtering conditions or data groupings.

#### **Importance of Measures**

* Enable quantitative analysis and data comparison.
* Serve as the foundation for building reports and charts.
* Support data-driven decision-making.

#### Default Measures

FPT Data Suite provides **default measures** for each **dimension** in a schema.

**For dimensions with data types: Date, Datetime, String, or Boolean, the following aggregate functions are supported:**

* COUNT
* COUNTDISTINCT
* MIN
* MAX
* COUNTROLLINGWINDOW
* COUNTDISTINCTROLLINGWINDOW

**For dimensions with data types:  Number, or Double, the following functions are supported:**

* COUNT
* COUNTDISTINCT
* SUM
* AVG
* MIN
* MAX
* COUNTROLLINGWINDOW
* COUNTDISTINCTROLLINGWINDOW
* SUMROLLINGWINDOW
* AVGROLLINGWINDOW

#### Custom Measures

FPT Data Suite supports three types of custom measures:

1. **Basic Measure**\
   Calculated based on one or more columns of numeric data combined with aggregate functions (such as SUM, COUNT, AVG, etc.).
2. **Filter Measure**\
   Dynamically adjusts filter conditions based on the context of each report.\
   Instead of using fixed filter values, this type of measure utilizes user-selected variables (e.g., time, region, segment) to generate contextual results.
3. **Formula Measure**\
   Created using custom formulas, allowing users to combine multiple measures — even across different schemas — to produce advanced analytical metrics.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.datasuite.vn/english/features/data-modeling/measures.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
