Power BI 服务中的分析窗格Analytics pane in Power BI service

通过 Power BI 服务的“分析”窗格,可以向可视化效果添加动态参考行,并重点关注重要趋势或见解。With the Analytics pane in Power BI service, you can add dynamic reference lines to visualizations, and provide focus for important trends or insights.

备注

仅当在报表画布上选择视觉对象时才会显示“分析”窗格。The Analytics pane only appears when you select a visual on the report canvas.

使用分析窗格Using the Analytics pane

通过“分析”窗格,可以创建以下类型的动态参考行(并非所有的行都适用于所有视觉对象类型):With the Analytics pane, you can create the following types of dynamic reference lines (not all lines are available for all visual types):

  • X 轴恒线X-Axis constant line
  • Y 轴恒线Y-Axis constant line
  • 最小值线Min line
  • 最大值线Max line
  • 平均线Average line
  • 中线Median line
  • 百分位数线Percentile line

若要查看视觉对象的可用动态参考行,请按照下列步骤操作:To view the available dynamic reference lines for a visual, follow these steps:

  1. 选择或创建视觉对象,然后从“可视化效果”窗格选择“分析”图标 Select or create a visual, then select the Analytics icon from the Visualizations pane.

  2. 为想要创建的行类型选择向下箭头以展开其选项。Select the down arrow for the type of line you want to create to expand its options. 本示例中将选择“平均线”。In this case, we'll select Average Line.

    添加平均线

  3. 若要创建新行,请选择“+ 添加”并确定用于创建行的度量值。To create a new line, select + Add and decide the measure that will be used to create the line. “度量值”下拉列表中会自动填充来自选定可视化对象的可用数据。The Measure dropdown is automatically populated with available data from the selected visualization. 让我们使用“打开商店计数”。Let's use Open store count.

  4. 对于线条提供了各种选项,例如可以颜色、透明度、样式和位置(与视觉对象的数据元素相关)。You have all sorts of options for your line, such as color, transparecy, style, and position (relative to the visual's data elements). 若要为线条添加标签,请为它提供一个标题,然后将“数据标签”滑块移至“开”。If you want to label the line, give it a title and then move the Data label slider to On. 在本示例中,我们为该线条指定标题“平均# 打开商店”,并对其他几个选项进行自定义,如下所示。In this case, we'll title the line Avg # Open Stores, and customize a few of the other options as shown below.

    自定义平均线分析

  5. 请注意“分析”窗格中的“平均线”项旁显示的数目。Notice the number that appears next to the Average line item in the Analytics pane. 它指出目前在视觉对象上所拥有的动态行的数量和类型。That tells you how many dyanmic lines you currently have on your visual, and of which type. 如果添加了“常量行”作为商店数目标 9,则可以看到“分析”窗格显示现在也有适用于此视觉对象的“常量行”参考。If we add a Constant line as a store count goal of 9, you can see that the Analytics pane shows that we now also have a Constant line reference line applied to this visual.

通过使用“分析”窗格创建动态参考行,可以突出显示各种有趣的见解。There are all sorts of interesting insights you can highlight by creating dynamic reference lines with the Analytics pane.

注意事项和疑难解答Considerations and troubleshooting

如果所选择的视觉对象不能具有对其适用的动态参考行(本示例中为映射视觉对象),则会在选择“分析”窗格时看到以下信息。If the visual you've selected can't have dynamic reference lines applied to it (in this case, a Map visual), you'll see the following when you select the Analytics pane.

分析不可用

是否能使用动态参考行取决于正在使用的视觉对象的类型。The ability to use dynamic reference lines is based on the type of visual being used. 下表显示动态行当前适用的视觉对象:The following list shows which dynamic lines are currently available for which visuals:

动态行完全适用于以下视觉对象:Full use of dynamic lines are available on the following visuals:

  • 分区图Area chart
  • 折线图Line chart
  • 散点图Scatter chart
  • 簇状柱形图Clustered Column chart
  • 簇状条形图Clustered Bar chart

以下视觉对象仅能使用“分析”窗格中的恒线:The following visuals can use only a constant line from the Analytics pane:

  • 堆积面积图Stacked Area
  • 堆积条形图Stacked Bar
  • 堆积柱形图Stacked Column
  • 百分比堆积条形图100% Stacked Bar
  • 百分比堆积柱形图100% Stacked Column

对于以下视觉对象,趋势线是当前仅有的选项:For the following visuals, a trend line is currently the only option:

  • 非堆积折线图Non-stacked Line
  • 簇状柱形图Clustered Column chart

最后,非笛卡尔视觉对象当前无法应用“分析”窗格中的动态行,例如:Lastly, non-Cartesian visuals cannot currently apply dynamic lines from the Analytics pane, such as:

  • 矩形图Matrix
  • 饼图Pie chart
  • 圆环图Donut
  • Table

后续步骤Next steps

Power BI Desktop 中的分析窗格Analytics pane in Power BI Desktop

更多问题?More questions? 尝试参与 Power BI 社区Try the Power BI Community