How to open a Power Bi report that is put on Teams from Excel - excel

Hi dear community
I have a question please.
I want to open a Power BI report by clicking on an Excel button, but the problem is that the report is on the server, so we use Sharepoint and teams to get the files.
The .pbix file is also put on Teams and I don't know how to open it directly from the Excel button.
The report used to be local so I used this code to open it:
Sub cmdOpen_Click()
VBA.Shell "C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe C:\Users\nizar\Desktop\KPI.pbix"
End Sub
But now the report is on Teams, please Help.
PS: I can open it as a link, but it will only lead me to Teams where the report is placed, but I want it to open it directly on the application.

A Teams folder is actually a Sharepoint folder in disguise:
So you should be able to browse to the folder that contains your file in Teams, and then using the menu you should be able to select "Open In Sharepoint":
From there, you would use the normal methods of converting a Sharepoint address into a file location.
For example:
https://yoursite.sharepoint.com/sites/sitename/document_library/subfolder/test.pdf
Would become:
\\yoursite.sharepoint.com#ssl\sites\sitename\document_library\subfolder\test.pdf

Related

Power Bi dasherboard uploaded online connected to excel file does not update

from power bi desktop I created a dashboard with links to Saleforce and with a link to an excel table on my computer.
from "edit query" I deactivated the updating of the excel file in the report (it must not update) and I uploaded the dashboard online so that I can share it.
the computer on which I have the excle file does not always stay on, when I go to create a scheduled update of the dashboard, it fails because it cannot connect to the excel file.
my aim is to keep the excel file because I created some measurements (so as not to redo them) and to update the dashboard
you have to update the dashboard with the saleforce dates but not with the excel file
Put the Excel file on SharePoint/Onedrive and import it from there.
Use web connector option in Power BI Desktop option and pase the link for the connected Excel file . It will work fine

Office Scripts Open Excel file in Desktop

Dears,
In Excel webapp, there is a menu button to open the Excel file in desktop app.
Can this action be done in Office Scripts? Open Excel file in Desktop?
main(workbook: ExcelScript.Workbook) {}
I answered the question here already. But for people landing on this page here it is.
See Office URI Schemes
To open an Excel file you can do something like this:
ms-excel:ofe|u|https://locationofthefile.com/file.xls
Use ofe to open a file and edit or ofv to open a file and view.
There are more complex options as you can read in the docs. But this will probably do it for the most cases
Application
URI
Word
ms-word:
Power Point
ms-powerpoint:
Visio
ms-visio:
Access
ms-access:
Project
ms-project:
Publisher
ms-publisher:
SharePoint
ms-spd:
Infopath
ms-infopath:

Mimic Sharepoint edit Office file download

When you browse a list of files in Sharepoint using IE and attempt to download the file, you get the option of opening it in read-only or edit mode. When you open the document, Office knows that the file exists in Sharepoint so when you save, it is updated in Sharepoint without the user having to re-upload the file.
I'd like to have this same functionality in a custom website. I have access to Sharepoint and the file list so I'm using the same URL that Sharepoint is to download the file but there's something else happening in Sharepoint that tells the computer to not download a copy of the file but to open it in Office from the Sharepoint URL.
Does anyone know how to mimic this same behavior so I can get a file to be opened in Office from Sharepoint to it can save directly back to Sharepoint?
The special thing about this, is the link:
It's not just http://example.com/document.docx . It's ms-word:ofe|u|http://example.com/document.docx .
Just add ms-word:ofe|u| in front of the link for letting the browser know to open the link with an other Application.
There are other strings for other links.
Open a OneNote-File with:
onenote:http://example.com/document.one
And Excel-Files with
ms-excel:ofv|u|http://example.com/document.xlsx
And just for fun a TeamSpeak Link:
ts3server://example.com
Create URL for MS Office 2010 (and higher) to:
open document in view mode:
ms-excel:ofv|u|http://server.com/path/filename.xlsx
open document in edit mode:
ms-excel:ofe|u|http://server.com/path/filename.xlsx
List of MS Office apps URL scheme names:
ms-word:
ms-powerpoint:
ms-excel:
ms-visio:
ms-access:
ms-project:
ms-publisher:
ms-spd:
ms-infopath:
MS has a good page with explanation:
MS Office Dev Center > Office URI Schemes

Wow, that's a big workbook. Unfortunately, we can't open a workbook larger than 10 MB

I use Share Point 2013 and PowerPivot Service .
I create a report in Excel and Upload my report in SharePoint Document but when I want visit this report in my SharePoint web site, I get this error :
Wow, that's a big workbook. Unfortunately,
we can't open a workbook larger than 10 MB.
You'll need to open this in Excel.
How I can change max size of Excel Report in sharepoint?
I’m not sure if you ever got the response you needed but here it is.
FYI The posted before told you how to change the upload size restriction (can I upload a 10mb doc/xls or a 1GB doc/xls) and not how to correct the workbook setting within Central Admin so that that display a workbook in a web part (browser) using Excel Services.
Log in to Central Admin as a Farm Administrator
Click “Application Management” in the left nav.
Click “Manage service applications” under Service Applications.
Click “Excel Services Application” next to “Excel Services Application Web Service Application” Note: not the item in grey under this.. You want the blue item.
Click the “Trusted File Locations” link and then select the reports library or document library your web part is calling or where the files are.
Scroll down to “Workbook Properties” and change the ‘Maximum Workbook Size” if it’s set to 10mb’s try and change it to 50 or 100mb’s and save the change.
Go back to the page with the reports web part and refresh it.
This should fix your issue with “This workbook is larger than the maximum workbook size allowed to be opened in the browser" and Excel Services in SharePoint 2010.
Here’s a link to help you out.
Thanks - Kris Wagner
TechNet - http://technet.microsoft.com/en-us/library/ff191192.aspx

Prevent Excel file download but allow read

We have uploaded an excel sheet to SharePoint 2013 document library.
We can click on this file and it opens in xlviewer.aspx page
We can also enter the url as http://sharepointsite/shared documents/docname.xls and the file will get downloaded.
Is there any way in which we can prevent download but allow users to view the file.
One solution is to put the excel sheet as a excel services webpart on a SharePoint site page.

Resources