首页 > 其他分享 >Access Excel or CSV Files Saved on Power BI Report Server Directly

Access Excel or CSV Files Saved on Power BI Report Server Directly

时间:2022-12-05 13:11:06浏览次数:38  
标签:Files Power Excel BI file Data your


 

steps_excel_report-server_01.png

steps_excel_report-server_02.png

2)    Open Power BI and select [Get Data], from main screen or “Home” menu on the Power BI desktop.

 

3)    Choose [Web] as a query data source.

steps_excel_report-server_03.png

 

4)    Enter the files URL, using the relevant API string: http://<your report server>/reports/api/v2.0/Resources( <your excel file's guid> )/Content/$value

 

steps_excel_report-server_04.png

 

5a. or b.) Once the query loads your source file, you should see a plain file icon, labelled with the same name as your report server. Notice that it loads the file as a binary file.

 

steps_excel_report-server_05.pngsteps_excel_report-server_06.png

 

Right-click the icon (or click the [Open As] folder icon located on the left menu, just underneath the main Power BI commend bar). Both methods do the same thing, i.e. open a new menu bar with suggested “open as” file types. Select “Excel”, or whatever your file type is.

 

6 or 7)  The next screen will load a table containing a list of any datasets held within your excel file.

 

steps_excel_report-server_07.jpg

 

In my example, I had data saved as an Excel table (labelled 6. on my screenshots). Power BI will also load any worksheets containing data, e.g 7 on my screen shots below. Click the dark yellow [Table] link

Expand Tableto open up your underlying excel data.

 

 

 

That’s it, wham, your excel file held on the Power BI Report Server should load.

 

Here is the M Script if you find it easier and can adjust the code to fit your file paths:

 

let
Source = Excel.Workbook(Web.Contents("https://yourserver.0007.co.uk/PBIReports/api/v2.0/Resources(123abc456-your-files-GUID-here-789efg00)/Content/$value"), null, true),

My_Sample_Data_Sheet = Source{[Item="My_Sample_Data",Kind="Sheet"]}[Data]

in
Source

标签:Files,Power,Excel,BI,file,Data,your
From: https://www.cnblogs.com/Javi/p/16952000.html

相关文章

  • Python 操作 Excel
    Python操作Excel目录Python操作Excel1安装pandas2pandas中操作Excel的函数2.1loc()2.1.1根据某些条件选择数据2.1.2选择一个行的范围2.1.3根据条件更新列的值......
  • Wps调用dll操作Excel表格转PDF
     起始原因:wps编辑创建的文档在microsoftoffice中打开,会报内容存在异常是否恢复,因此wps文件被微软设定为破损文件,无法对原有文档进行操作运行,故在此使用wps对Excel进行......
  • vba-将excel中数据插入数据库
    SubaddDate1()DimiAsInteger,jAsInteger,nAsIntegerDimsqlAsStringDimconAsNewADODB.ConnectionWithcon.Provider=......
  • Power BI 13 DAY
    分组依据在PQ下对维度进行汇总,并对其他字段进行不同的计算方式,就需要使用分组依据将下表中已“店名”为维度对重复店名作排重处理,对“单号”字段进行计数计算,对“来店......
  • Excel二维码图片生成器
    Excel二维码图片生成器它可以将excel文件的数据,每行数据生成一张二维码图片,并保存到电脑。软件无需安装,解压后即可直接使用,无需联网,操作简便快捷。软件下载地址:点此下载......
  • 如何使用PowerShell批量删除注册表项
    问题描述卸载了可牛压缩软件以后,发现右键菜单中仍然有可牛压缩的选项。不用想就知道是注册表中有该软件的残留。打开注册表,进行搜索发现在计算机\HKEY_USERS\S-1-5-21-36......
  • Python实现两个excel数据匹配
    Python实现两个excel数据匹配本文结合他人文章写成参考文章:https://blog.csdn.net/u010034713/article/details/110921270https://www.cnblogs.com/puresoul/p/7520198......
  • Excel二维码图片生成器
    Excel二维码图片生成器它可以将excel文件的数据,每行数据生成一张二维码图片,并保存到电脑。软件无需安装,解压后即可直接使用,无需联网,操作简便快捷。 步骤1:导入事先制作......
  • Maven 动态切换多 profiles 编译环境
    pom.xml配置<!--Maven动态切换多profiles编译环境--><profiles><!--开发环境--><profile><id>dev</id><!--默认激活--><activation......
  • Power BI 12 DAY
    电商平台流量分析案例练习参数建模建模——>新建参数新建度量值使用SWITCH函数将需要的指标数据化15.关键指标=switch([指标选择值],1,[1.访客数合计],2,[2.浏......