Power BI 服务和 Power BI Desktop 中的 Power BI 问答Q&A in Power BI service and Power BI Desktop

“问答”是什么?What is Q&A?

有时从你的数据中获得答案的最快方法是使用自然语言提问。Sometimes the fastest way to get an answer from your data is to ask a question using natural language. 例如,“去年的销售总额是多少”。For example, "what were total sales last year." 使用“问答”来利用直观、自然的语言功能浏览数据并接收图表和图形形式的答案。Use Q&A to explore your data using intuitive, natural language capabilities and receive answers in the form of charts and graphs. “问答”与搜索引擎不同 --“问答”仅提供有关 Power BI 中的数据的结果。Q&A is different from a search engine -- Q&A only provides results about the data in Power BI.

可以本文为起点,了解 Power BI 问答的方方面面。This article is the jumping off point for all things Q&A. 请选择下面的链接,了解 Power BI 问答在 Power BI 服务(仪表板和报表)、Power BI Desktop(报表)、Power BI Embedded 和 Power BI 移动版中的工作原理。Select a link below to learn how Q&A works in Power BI service (dashboards and reports), Power BI Desktop (reports), Power BI Embedded, and Power BI mobile.

备注

Power BI 问答仅支持回答用英文提问的自然语言查询。Power BI Q&A only supports answering natural language queries asked in English. 你还可以尝试使用西班牙语提问的预览功能。You can also try out a preview feature for questions asked in Spanish. 在“Power BI Desktop”中,转到“文件”>“选项和设置”>“选项”,查找“预览功能”选项卡。选中“问答的西班牙语支持”对应的框。In Power BI Desktop, go to File, Options and settings, Options and look for the Preview Features tab. Check the box for Spanish language support for Q&A.

提问仅仅是个开始。Asking the question is just the beginning. 在完善数据或扩展问题、发现可信的新信息、专注细节以及缩小以获得更宽广的视野的过程中找到乐趣吧。Have fun traveling through your data refining or expanding your question, uncovering trust-worthy new information, zeroing in on details and zooming out for a broader view. 你将会满意你的见解和发现。You’ll be delighted by the insights and discoveries you make.

体验是真正的交互式…并且快速!The experience is truly interactive…and fast! 由内存存储提供支持,响应几乎瞬时完成。Powered by an in-memory storage, response is almost instantaneous.

面向使用者的 Power BI 问答Q&A for consumers

如果同事与你共享仪表板,将会在 Power BI 服务 (app.powerbi.com) 中的仪表板上、Power BI 移动版中的仪表板底部和 Power BI Embedded 中的可视化效果上方看到 Power BI 问答的提问框。When a colleague shares a dashboard with you, you'll find the Q&A question box on the dashboard in Power BI service (app.powerbi.com), at the bottom of the dashboard in Power BI mobile, and above the visualization in Power BI Embedded. 只有在所有者授予编辑权限后,才能使用 Power BI 问答浏览数据,但无法保存通过 Power BI 问答创建的任何可视化效果。Unless the owner has given you edit permissions, you'll be able to use Q&A to explore data but won't be able to save any visualizations created with Q&A.

面向创建者的 Power BI 问答Q&A for creators

若为 Power BI 报表的创建者,或拥有对数据集的编辑权限,将在 Power BI 服务中的仪表板上,以及在 Power BI 服务和 Power BI Desktop 中的每个报表页上看到 Power BI 问答的提问框。If you're a creator of Power BI reports or have edit permissions to a dataset, you'll find the Q&A question box on the dashboard in Power BI service, and on each report page in Power BI service and Power BI Desktop. 使用 Power BI 问答创建的任何可视化效果都可以保存到仪表板和报表。Any visualization you create using Q&A can be saved to a dashboard and saved in a report.

除了可以使用 Power BI 问答浏览数据之外,创建者和数据集所有者还能提升使用者的 Power BI 问答体验,具体是通过修改数据集、添加特别推荐问题,以及为本地实时连接数据集启用和禁用 Power BI 问答In addition to using Q&A to explore their data, creators and dataset owners can improve the Q&A experience for consumers by modifying their datasets, adding featured questions, and enabling and disabling Q&A for on-premises live connection datasets. Embedded 方案中,开发人员可以在“交互式”和“仅结果”这两种模式之间进行选择。In Embedded scenarios, developers can choose between 2 modes: interactive and result only.

问答如何知道怎样回答问题?How does Q&A know how to answer questions?

问答使用哪些数据集?Which datasets does Q&A use?

问答如何知道怎样回答特定于数据的问题?How does Q&A know how to answer data-specific questions? 它依赖于基础数据集中的表、列和计算字段的名称。It relies on the names of the tables, columns, and calculated fields in the underlying dataset. 因此你(或数据集所有者)对它们的称谓才最重要!So what you (or the dataset owner) call things is important!

例如,假设你有这样一个 Excel 表,表名称为“销售”,其中列标题有“产品”、“月份”、“销售件数”、“销售总额”和“利润”。For example, suppose you had an Excel table named “Sales”, with columns titled “Product”, “Month”, “Units Sold”, “Gross Sales”, and “Profit”. 你就可以对任何这些条目提问。You could ask questions about any of those entities. 你可以请求提供“显示销售额”、“按月显示总利润”、“按销售件数对产品排序”等。You could ask "show sales, "total profit by month", "sort products by units sold", and more.

问答可以根据数据集的整理方式进行回答。Q&A can answer questions that are based on how your dataset is organized. 它对 Salesforce 中的数据如何处理?How would this work for data in Salesforce? 当连接到 salesforce.com 帐户时,Power BI 会自动生成一个仪表板。When you connect to your salesforce.com account, Power BI generates a dashboard automatically. 当你使用问答开始提问时,请同时查看一下在仪表板可视化效果中显示的数据和在问答下拉列表中显示的数据。Before you start asking questions with Q&A, take a look at the data displayed in the dashboard visualizations and also at the data displayed in the Q&A dropdown.

  • 如果可视化效果的轴标签和值包括“销售额”、“帐户”、“月份”和“商机”,则可以有把握地提出以下问题:“哪个帐户的商机最大”或“以条形图的形式按月显示销售额”。If the visualizations' axis labels and values include "sales", "account", "month", and "opportunities", then you can confidently ask questions such as: "Which account has the highest opportunity, or show sales by month as a bar chart."
  • 如果下拉列表包括“销售人员”、“省/直辖市/自治区”和“年份”,则可以有把握地提出以下问题:“2013 年在美国佛罗里达州,哪个销售人员的销售额最低”。If the dropdown includes "salesperson", "state", and "year", then you can confidently ask questions such as: "which salesperson had the lowest sales in Florida in 2013."

如果可以通过 Google Analytics(Google 分析)获取网站性能数据,则可以向“问答”提出关于花在网页上的时间、独特网页访问数以及用户参与度方面的问题。If you have website performance data in Google Analytics, you could ask Q&A about time spent on a web page, number of unique page visits, and user engagement rates. 如果你要查询地理数据,则可以按位置就年龄和家庭收入提问。Or, if you’re querying demographic data, you might ask questions about age and household income by location.

问答使用哪些可视化效果?Which visualization does Q&A use?

问答会根据要显示的数据选取最佳的可视化效果。Q&A picks the best visualization based on the data being displayed. 有时,可将基础数据集中的数据定义为特定类型或类别,以帮助问答识别如何显示数据。Sometimes data in the underlying dataset(s) is defined as a certain type or category and this helps Q&A know how to display it. 例如,如果数据被定义为日期类型,则该数据很有可能显示为线图。For example, if data is defined as a date type, it is more likely to be displayed as a line chart. 如果将数据分类为城市,则很有可能显示为地图。Data that is categorized as a city is more likely to be displayed as a map.

通过将可视化效果添加到你的问题,还可以告知“问答”要使用哪个可视化效果。You can also tell Q&A which visualization to use by adding it to your question. 但请记住,“问答”并非总能显示你请求的可视化效果类型中的数据。But keep in mind that it may not always be possible for Q&A to display the data in the visualization type you requested.

有关“问答”可识别的关键字的信息,请参阅提问技巧For information about keywords that Q&A recognizes, see Tips for asking questions.

有关 Power BI 问答的详细信息For more details about Power BI Q&A

概述:如何在 Power BI 仪表板和报表中使用 Power BI 问答:逐步介绍了如何使用 Power BI 问答,并概述了它的全部工作原理。Overview: How to use Q&A in Power BI dashboards and reports: Step by step instructions for using Q&A and an overview of how it all works.

Microsoft Power BI 移动版应用:适用于 iPad、iPhone 和 iPod Touch 设备上的 iOS。Microsoft Power BI mobile app For iOS on iPads, iPhones, and iPod Touch devices.

Microsoft Power BI Embedded:将 Power BI 问答合并到应用程序中。Microsoft Power BI Embedded Incorporate Q&A into an application.

在“问答”中提问的提示:学习如何与“问答”交谈以获得可能的最佳结果。Tips for asking questions in Q&A: Learn how to talk to Q&A to get the best possible results.

将精选问题添加到你的数据集,“问答”将向你的同事推荐这些问题。Add featured questions to your datasets and Q&A will suggest these questions to your colleagues.

为本地数据集启用 Power BI 问答:如需使用网关连接到数据集,请使用 Power BI 设置来启用和禁用 Power BI 问答。Enable Q&A for your on-premises datasets If you need a gateway to connect to the dataset, use Power BI settings to turn Q&A on and off.

教程:通过“零售销售额示例”在 Power BI 服务中使用 Power BI 问答:在实际行业中使用 Power BI 问答的教程。Tutorial: Use Q&A with the Retail Sales sample n Power BI service: Use Q&A in a realistic industry tutorial.

将你的数据与“问答”很好地配合使用:你是创建数据集和数据模型的人员吗?Make your data work well with Q&A: Are you the person creating datasets and data models? 那么本主题适合你。Then this topic is for you.

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