# 使用快速度量轻松执行常见的高效计算Use Quick measures to easily perform common and powerful calculations

## 使用快速度量值Using Quick measures

• 每个类别的聚合Aggregate per category
• 类别中的平均值Average within category
• 类别中的方差Variance within category
• 类别中的最大值Max within category
• 类别中的最小值Min within category
• 每个类别的加权平均Weighted average per category
• 筛选器Filters
• 已筛选的值Filtered value
• 与基线的差异Difference from baseline
• 与已筛选值的百分比差异Percentage difference from filtered value
• 新类别的销售额Sales from new categories
• 时间智能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

## 快速度量值的示例Example of Quick measures

1. “矩阵”视觉对象现在有一个新列，其中展示了我们的计算（在此示例中，为“SalesAmount 内的平均销售额”）。The Matrix visual now has a new column that shows our calculation (in this case, Average SalesAmount within SalesAmount).
2. “字段”井元素中新建并突出显示了一个度量值（Power BI 用黄色框将其框住）。A new measure has been created and is available in the Fields well, and it's highlighted (Power BI puts a yellow box is around it). 此度量值适用于报表中的其他任何视觉对象，而不仅仅适用于最初创建它的视觉对象。This measure is available to any other visual in the report, not just the visual for which it was originally created.
3. 编辑栏中显示了为此快速度量值创建的 DAX 公式。The DAX formula that was created for the Quick measure is displayed in the Formula bar.

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

• 只有当可以修改模型时，才能使用快速度量，使用 DirectQuery 或大多数实时连接（支持 SSAS 实时连接，如前所述）的情况除外。Quick measures are only available if you can modify the model, which isn't the case when you're working with DirectQuery or most Live connections (SSAS live connections are supported, as previously explained).
• 添加到“字段”井元素中的度量值可以与报表中的任意视觉对象结合使用。The measure that's added to the Fields well can be used with any visual in the report.
• 选择“字段”井元素中创建的度量值，然后查看编辑栏中的公式，可以随时查看与快速度量值相关联的 DAX。You can always see the DAX associated with a Quick measure by selecting the created measure in the Fields well, then looking at the formula in the Formula bar.

Warning