# 使用快速度量执行常见计算Use quick measures for common calculations

## 创建快速度量Create a quick measure

• 每个类别的聚合Aggregate per category
• 每个类别的平均值Average per category
• 每个类别的差异Variance per category
• 每个类别的最大值Max per category
• 每个类别的最小值Min per category
• 每个类别的加权平均Weighted average per category
• 筛选器Filters
• 已筛选的值Filtered value
• 与已筛选值的差异Difference from filtered value
• 与已筛选值的百分比差异Percentage difference from filtered value
• 新客户的销售额Sales from new customers
• 时间智能Time intelligence
• 本年迄今总计Year-to-date total
• 本季度至今总计Quarter-to-date total
• 本月至今总计Month-to-date total
• 年增率变化Year-over-year change
• 季度增率变化Quarter-over-quarter change
• 月增率变化Month-over-month change
• 移动平均Rolling average
• 总数Totals
• 汇总Running total
• 类别总数（应用筛选器）Total for category (filters applied)
• 类别总数（未应用筛选器）Total for category (filters not applied)
• 数学运算Mathematical operations
• 减法Subtraction
• 乘法Multiplication
• 除法Division
• 百分比差异Percentage difference
• 相关系数Correlation coefficient
• 文本Text
• 星级评分Star rating
• 值连接列表Concatenated list of values

## 快速度量示例Quick measure example

1. 矩阵视觉对象有一个新列，其中显示已计算的“Average Unit Price average per Category”。The matrix visual has a new column that shows the calculated Average Unit Price average per Category.

2. 新建的快速度量的 DAX 公式显示在公式栏中。The DAX formula for the new quick measure appears in the formula bar. 有关 DAX 公式的详细信息，请参阅下一节See the next section for more about the DAX formula.

3. 新建的快速度量在“字段”窗格中以选中和高亮显示状态显示。The new quick measure appears selected and highlighted in the Fields pane.

## 限制和注意事项Limitations and considerations

• 你可以在报表的任何视觉对象中使用添加到“字段”窗格的快速度量。You can use quick measures added to the Fields pane with any visual in the report.
• 选择“字段”列表中的度量值，然后查看公式栏中的公式，可以随时查看与快速度量相关联的 DAX。You can always see the DAX associated with a quick measure by selecting the measure in the Fields list and looking at the formula in the formula bar.
• 如果能够修改模型，快速度量才可适用。Quick measures are only available if you can modify the model. 如果使用某些实时连接，则不适用。That isn't the case when you're working with some Live connections. 如前文所述，支持 SSAS 表格实时连接。SSAS tabular live connections are supported, as previously described.
• 在 DirectQuery 模式下工作时，无法创建时间智能快速度量。You can't create time intelligence quick measures when working in DirectQuery mode. 这些快速度量中使用的 DAX 函数在转换为发送到数据源的 T-SQL 语句时会影响性能。The DAX functions used in these quick measures have performance implications when translated into the T-SQL statements that are sent to your data source.