在 Power BI Desktop 中自定义工具提示Customizing Tooltips in Power BI Desktop

工具提示是向视觉对象上的数据点提供更多上下文信息和详细信息的一种巧妙方法。Tooltips are an elegant way of providing more contextual information and detail to data points on a visual. 下图展示了应用到 Power BI Desktop 中的图表的工具提示。The following image shows a tooltip applied to a chart in Power BI Desktop.

创建可视化效果时,默认工具提示会显示数据点的值和类别。When a visualization is created, the default tooltip displays the data point's value and category. 很多能够自定义工具提示信息的实例都非常有用,并可向查看视觉对象的用户提供其他上下文和信息。There are many instances when being able to customize the tooltip information would be useful, and would provide additional context and information for users viewing the visual. 自定义工具提示可以指定显示为工具提示一部分的其他数据点。Custom tooltips enable you to specify additional data points that display as part of the tooltip.

自定义工具提示的方式How to customize tooltips

若要创建自定义工具提示,只需在可视化效果窗格的字段框中,将字段拖动到工具提示存储桶,如下图所示。To create a customized tooltip, in the Fields well of the Visualizations pane, simply drag a field into the Tooltips bucket, shown in the following image. 下图中,已将四个字段放置到工具提示存储桶。In the following image, four fields have been placed into the Tooltips bucket.

将工具提示添加到字段框后,将鼠标悬停在可视化效果的数据点上会在工具提示中显示这些字段的值。Once Tooltips are added to the field well, hovering over a data point on the visualization shows the values for those fields in the tooltip.

使用聚合或 Quick Calcs 自定义工具提示Customizing tooltips with aggregation or Quick Calcs

可以通过选择聚合函数或选择工具提示存储桶中的字段旁的箭头,然后从可用选项中选择 Quick Calc 来进一步自定义工具提示。You can further customize a tooltip by selecting an aggregation function or a Quick Calc by selecting the arrow beside the field in the Tooltips bucket, and selecting from the available options.

自定义工具提示的方法有很多,使用数据集中的任何可用字段都可向查看仪表板或报表的用户传达快速信息和见解。There are many ways to customize Tooltips, using any field available in your dataset, to convey quick information and insights to users viewing your dashboards or reports.