在SharePoint 平台上发布一个Power BI 报表

使用SharePoint 列表数据创建一个桌面版的Power BI 报表

1. Let‘s use the same dataFinance Sample Workbook from Power BI  site for this example as well
2. Load the data in SharePoint List
3. Open the Power BI for desktop tool and sign in using your O365 ID & password
4. Click File -> New -> It should open the blank report
5. Click Get Data option from Home menu -> More -> Online Services -> SharePoint Online List as shown below:

6. Enter the SharePoint URL - just the site collection but not till the List URL
7. Once you enter, select Microsoft account option from Anonymous, Windows, Microsoft account options displayed for authentication as shown below:

8. Once authenticated & connected, it will display all lists and library in the site collection. Select the List (Finance Sample excel work book loaded) and either click edit to edit the columns or click Load to load the data to the Power BI
9. An important point to note is that the Finance Sample Excel Workbook is loaded into SharePoint List and now the data is connected to Power BI. If you notice the loaded data (columns Gross Sales, Sales Price, COGS, Profit related to cost) in Power BI are loaded as text instead of $$$ value in this example
10. Using Power BI, we can change the data type (NOTE: changing the data type will affect the data refresh so it is a good practice to change the data type in the source or load the data at the source with an appropriate data type). For this example, data type has been changed in the Power BI for the desktop. 
Option is Data section -> Modeling tab in Ribbon -> Data Type & Format as shown below:

11. Loaded data and updated with data type is shown below:

12. In the above data loaded columns month, year are in a separate column, let‘s use DAX expression to combine them and display as Year - Month in a separate column. A new column "Date" is added as shown below:

13. Once the data is loaded, fields section shows the column that can be added to report, also the fields which can be displayed as aggregate/sum and also the measure created (Date field in above step):

14. Now, it‘s time to add the charts in the report section. Used Card, KPI, Line & Clustered Column Chart, Pie Chart, Line Chart to complete the report which is shown below:

Publish the report to SharePoint Online (Power BI Pro)

15. Now, it‘s time to publish the report to SharePoint Online. First step is to publish the report to work space in Power BI site then to SP Online.

Log in to the Power BI site. In the above step, above report has been published to "My Workspace" section. Hence navigate to the My Workspace section in Power BI site -> Reports section (since this is published as report but not dashboard) -> click on the report ("Sales Report")

Now, click on the File -> click on select Embed in SharePoint Online preview as shown below. This will give the link to publish the Power BI report to SharePoint Online.

16. Now, time to integrate the report in SharePoint Online. In the previous article, have explained about creating Communication Sites in SharePoint Online. Now, create a page and then add Power BI (preview) web part as shown below:

17. Now, name the page and publish the page. Below is the preview of the page and how the filter works in the chart according to the selection:

Note: Embed in SharePoint Online is only available with Power BI Pro. Each user that views the report mush have a Power BI Pro license. If they do not have a Pro license, they will be prompted to sign-up to view the report

18. Next one final step is "Data Refresh". Navigate to the Power BI site again -> Work spaces -> My work space -> Data sets -> select your report (Sales Report) -> Schedule Refresh button in Actions section to schedule the data refresh as shown below:

iOS Power BI App preview of the report

Granting Access to reports

Embedding a report in SharePoint Online does not automatically give users permission to view the report in SharePoint site. The permissions to view the report are set within Power BI service itself. 
1. There are two ways to provide access to the report within the Power BI service. If you are using Office 365 Group to build your SharePoint Online team site, you list the user as a member of the app work space within the Power BI service. This will make sure that users can view the contents of that group. For more information , seeCreate and distribute an app in Power BI. 
2. Alternatively, you can grant users access to your report by doing the following.
        a.  Add a tile from the report to a dashboard.
        b. Share the dashboard with the users that need access to the report. For more information, see Share a dashboard with colleagues and others .
Reference: https://powerbi.microsoft.com/en-us/documentation/powerbi-service-embed-report-spo/ 

Publish the report to SharePoint (without Power BI Pro option)

Suppose you don‘t have Power BI pro license but want to integrate the Power BI report in SharePoint 2013 or 2016 or in SharePoint Online, then Page Viewer is the option we have :)
Navigate to the page where you want to display the Power BI report -> add a Page Viewer Web Part -> add the link copied from Power BI site (Report -> File -> Embed in SharePoint Online(Preview)-> copy the link)



Differences between publishing using Power BI pro & in Page Viewer web part

1. Show/Hide Navigation Page, Filter Pane options are available only in Power BI

2. Options to change the display size of the report is available only in Power BI pro

3. Sorting the each section of report by it‘s main report parameter is available only in Power BI pro


4. Option to See Data of a particular report is available only in Power BI pro

5. All the above options are not available in normal publishing way
6. Share the report via Facebook, Twitter, Linked In, Email, & information about report, flagging report option is available in normal publihing method (Page Viewe web part)

Export to PowerPoint (Preview)

There is another option available in reports in Power BI site which is Export to PowerPoint(Preview). Navigate to Power BI Site -> Select the report -> File -> Export to PowerPoint (Preview) as shown below:

The exported file is attached here to know how a exported Power BI report looks like. See Downloads section for the file.

Downloads

Conclusion

So, we have learned how to create a Power BI report from SharePoint List as data source, created DAX expressions, added different chart types, published the report to Power BI and then to SharePoint Online, SharePoint Online with out Power BI Pro and also applicable to SharePoint 2013 & 2016.

引自:https://blog.csdn.net/duanchuanttao/article/details/78808999

原文地址:https://www.cnblogs.com/xdanny/p/11456749.html

时间: 2024-11-08 00:38:28

在SharePoint 平台上发布一个Power BI 报表的相关文章

Power BI 报表服务器发布

Power BI 报表服务器让你的用户能够访问数据.获取见解,并能够使用 SQL 报表服务器服务的企业报告功能 - 这一切都在现代本地解决方案中完成.让用户能够直观浏览数据并快速发现模式,以便更快作出更好的决策.同时生成满足你业务需求的精确格式的报表.你还可以胸有成竹地扩展到数千名用户,因为 Power BI 报表服务器基于经实践证明的企业级平台,下载地址 https://www.microsoft.com/zh-CN/download/details.aspx?id=55329 作为 Powe

Swifter.Json -- 在 .Net 平台上的一个功能强大,简单易用,稳定又不失高性能的 JSON 序列化和反序列化工具。

Swifter.Json Github Wiki 在 .Net 平台上的一个功能强大,简单易用,稳定又不失高性能的 JSON 序列化和反序列化工具. Swifter.Json 已经经过了大量测试和线上项目中运行许久来确保它的稳定性. 特性 1: 支持 .Net 上绝大多是的数据类型,且轻松扩展:包括但不限于:实体,字典,集合,迭代器,数据读取器和表格. 2: 支持 .Net 我已知的大多数平台,包括但不限于:.Net Framework 2.0+, .Net Core 2.0+, .Net St

windows平台上的一个内存池的实现

.h文件 /**********************说明************************* * 这是MPool内存池的实现,他具有如下特性: * 1. 池中的内存块是大小是相同的 * 2. 由宏定义_MP_NO_SERIALIZE决定是否需要多线程同步 * 3. 他利用windows的堆内存API进行内存分配 * 4. 他不能替换crt的malloc和free * 5. 他不是一个通用型的内存池 * 6. 适用于特定的应用环境(高频率的申请释放内存,如网络服务器),应用环境影

【Web学习日记】——在IIS上发布一个WebService

没有开发过程,只是发布过程 一.前提 开发使用的是VS2013 从来没有做过Web的发布,在网上找例子,看到的总是与自己的情况不相符,而且也有人提出了VS2013发布网站的问题,但解决方案却很少,好不容易找到一个,一定要记下来,方便以后查阅. 要把一个WebService发布到IIS,首先要安装IIS,网络上有很多安装IIS的教程,不再重复:第二步就是使用VS发布WebService:第三步就是在IIS上创建网站. 二.用VS2013发布WebService 用VS2013开发完成之后,在Web

说说新发布的Power BI Designer吧

就在去年的某个时间...(其实也就两周前而已),微软发布了一款跨平台的BI产品,名曰Power BI Designer,第一时间下载到安装文件并体验了一把,有想要体验的朋友请留言,我发安装包给你. http://blogs.msdn.com/b/powerbi/archive/2014/12/18/new-power-bi-features-available-for-preview.aspx 从官方宣传的New Features上的确看到一些亮点,比如on-premise,html5,iPad

在Ubuntu手机平台上创建一个HTML 5的应用

无论你是互联网世界的一个高手或是一个从来没有接触过互联网的新手,这篇文章将给你带来完整的在Ubuntu平台上开发HTML 5的应用.我们将慢慢地通过这个练习让你很自然地进入并熟悉整个的HTML 5应用的开发流程.在这个练习中,我们将设计一个最简单的RSS阅读器.当我们的应用设计完整后,应用的显示如下:         如果你是一个固执的HTM 5黑客,你可以选择任何你所喜欢的工具及工具包来开发你的HTML 5应用.它们将会很好地工作于Ubuntu手机上.我们将只专注于Ubuntu SDK提供的工

在npm上发布一个自己的包

1.首先你要在npm上创建一个账号,这里需要输入邮箱的,注意激活邮箱否则无法publish自己的包 2.在本地创建一个文件夹,输入npm init初始化项目,这里是我使用npm init创建的package.json文件 这是我的包的index.js代码,很简单就是一个hello world 3.创建好package.json以及我们自己的模块代码文件(index.js)之后需要添加用户 npm adduser 接下来会提示输入用户名,密码以及邮箱,这些都是你之前在注册账号的时候输入的,如果邮箱

当TFS/VSTS遇上Power BI

引言 众所周知,要对TFS进行深入的图表分析,往往需要依赖于SQL Server Analysis Service和SQL Server Reporting Service.虽然随着TFS对敏捷项目的支持,内置了诸如累积流图.燃尽图等快捷图表:并且在最新的版本中还可以在仪表盘和查询中快捷的定义一些汇总图表.但是更复杂的分析还是做不到. Power BI作为微软目前极力主推的一个敏捷自助型BI平台,理所当然可以和TFS/VSTS集成起来,对工作项进行全面的分析. Power BI集成VSTS 如果

微软新神器-Power BI横空出世,一个简单易用,还用得起的BI产品,你还在等什么???

在当前互联网,由于大数据研究热潮,以及数据挖掘,机器学习等技术的改进,各种数据可视化图表层出不穷,如何让大数据生动呈现,也成了一个具有挑战性的可能,随之也出现了大量的商业化软件.今天就给大家介绍一款逆天Power BI可视化工具.逆天的不仅仅是工具,还有其使用门槛和价格.        本文原文地址:http://www.cnblogs.com/asxinyu/p/Power_BI_Category.html Power BI系列文章地址:http://www.cnblogs.com/asxin