在 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.

使用彙總或快速計算來自訂工具提示Customizing tooltips with aggregation or Quick Calcs

您可以選取彙總函數或 [快速計算] 來進一步自訂工具提示,方法是選取 [工具提示] 值區中欄位旁邊的箭號,然後從可用的選項中進行選取。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.