PowerBI分析功能初探

想要在PBI里添加辅助线的2中方法

一种是直接应用图表界面的分析功能,而这种方法只有在应用簇状柱形图,或簇状条形图的时候才能应用,

本文内容

  1. 在“分析”窗格内搜索
  2. 使用分析窗格
  3. 应用预测
  4. 限制
  5. 后续步骤

通过 Power BI Desktop 的“分析”窗格,你可以向视觉对象添加动态参考行,并重点关注重要趋势或见解。
“分析” 窗格位于 Power BI Desktop 的“可视化效果” 区域中。

image.png

备注
仅当在 Power BI Desktop 画布上选择视觉对象时才会显示 “分析”窗格。

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

在“分析”窗格内搜索Search within the Analytics pane

自 2018 年 2 月版 Power BI Desktop (版本 2.55.5010.201 或更高版本)开始,可以在“分析” 窗格内进行搜索,此窗格是“可视化效果” 窗格的子节。Beginning with the February 2018 release of Power BI Desktop (version 2.55.5010.201 or later), you can search within the Analytics pane, which is a sub-section of the Visualizations pane. 如下图所示,选中“分析” 窗格时出现搜索框。As shown in the image below, search box appears when the Analytics pane is selected.

使用分析窗格Using the Analytics pane

仅当在 Power BI Desktop 画布上选择视觉对象时才会显示 “分析”窗格。

通过“分析”窗格,可以创建以下类型的动态参考行(并非所有的行都适用于所有视觉对象类型):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

以下各部分介绍如何在可视化效果中使用“分析”窗格和动态参考行。The following sections show how you can use the Analytics pane and dynamic reference lines in your visualizations.

若要查看视觉对象的可用动态参考行,请按照下列步骤操作: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 section.
image.png
  1. 为想要创建的行类型选择向下箭头以展开其选项。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.
  1. 若要创建一个新行,请选择“ + 添加”。To create a new line, select + Add. 然后,可以通过双击文本框,键入名称来为行指定名称。You can then specify a name for the line by double-clicking the text box, then typing in your name.

    对于行提供了各种选项,例如可以选择其“颜色” 、“透明度” 、“样式” 和“位置” (与视觉对象的数据元素有关),以及是否包括标签。You have all sorts of options for your line, such as selecting its color, transparency, style and position (relative to the visual's data elements), and whether to include the label. 重要的是,通过选择“度量值”下拉列表,可以选择想要行基于视觉对象中的哪个度量值,它会自动使用视觉对象中的数据元素予以填充 。And importantly, you can select which Measure in the visual you want your line to be based upon by selecting the Measure drop-down, which is automatically populated with data elements from the visual. 本示例中将选择“天气”作为度量值,对其设置“平均天气”标签,并对其他几个选项进行自定义,如下所示。 In this case, we'll select Weather as the measure, label it Average Weather, and customize a few of the other options as shown below.

  1. 如果想要显示数据标签,请将“数据标签”滑块移至开启状态。If you want to have a data label appear, move the Data label slider on. 执行此操作可以为数据标签获取大量其他选项,如下图所示。When you do so, you get a whole host of additional options for your data label, as shown in the following image.
  1. 请注意“分析”窗格中的“平均线”项旁显示的数目。Notice the number that appears next to the Average line item in the Analytics pane. 它指出目前在视觉对象上所拥有的动态行的数量和类型。That tells you how many dynamic lines you currently have on your visual, and of which type. 如果为“生活成本”添加了“最大值线” ,则可以看到“分析”窗格显示现在也有适用于该视觉对象的“最大值线”动态参考行。If we add a Max line for Cost of Living, you can see that the Analytics pane shows that we now also have a Max line dynamic reference line applied to this visual.

如果所选择的视觉对象不能具有对其适用的动态参考行(本示例中为映射视觉对象),则会在选择“分析”窗格时看到以下信息。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.

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

我们正在计划开发更多的特性和功能,其中包括扩展可以具有适用动态参考行的视觉对象,因此请经常查看其新增功能。We're planning more features and capabilities, including expanding which visuals can have dynamic reference lines applied to them, so check back often for what's new.

应用预测Apply Forecasting

选择可视化对象,然后展开“分析”窗格的“预测”部分即可使用“预测”功能。You can use the Forecast feature by selecting a visual, then expanding the Forecast section of the Analytics pane. 可以指定多个输入以修改预测,例如预测长度、置信区间等。 You can specify many inputs to modify the forecast, such as the Forecast length, the Confidence interval, and others.下图显示了已应用预测功能的基本行视觉对象,你可以使用自己的想象力(并使用预测功能)来查看它是如何应用到你的模型的。 The following image shows a basic line visual with forecasting applied, but you can use your imagination (and play around with the forecasting feature) to see how it can apply to your models.

限制Limitations

是否能使用动态参考行取决于正在使用的视觉对象的类型。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 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

只有在使用 Power BI Desktop 中的导入数据,或在实时连接到运行 Analysis Service 2016 或更高版本、Azure Analysis Services 的服务器上的模型或连接到 Power BI 服务上的数据集时,才能使用百分位数线。

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 198,932评论 5 466
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,554评论 2 375
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 145,894评论 0 328
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,442评论 1 268
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,347评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 47,899评论 1 275
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,325评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,980评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,196评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,163评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,085评论 1 328
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,826评论 3 316
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,389评论 3 302
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,501评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,753评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,171评论 2 344
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,616评论 2 339

推荐阅读更多精彩内容