Forum Discussion
Sharepoint document preview in PBI dashboard
Hello Everyone,
I am trying to figure out if it's possible to have a preview of a document from my dashboard
I already have the list of sharepoint hyperlinks in my table and I'm able to be redirected to the specific sharepoint file, but I need to see the preview directly on my dashboard
thank you in advance
2 Replies
- MFelix
Super User
Hi ceciliabagolan ,
You need to have a custom visual check if this post helps on what you need to achieve.
On that post they also redirect to this video
- rohit1991
Super User
hi ceciliabagolan ,
You can definitely add a SharePoint document preview to your Power BI dashboard, but there are a few important details and workarounds to be aware of:
1. Power BI Dashboard (Web Content Tile): If you’re using a Power BI dashboard (not a report), you can add a Web Content tile and paste your SharePoint file link there. Make sure you append ?web=1 to the end of your SharePoint URL so it opens in web view. This method works well for things like PDFs and Office files.
2. Power BI Report (HTML Viewer Visual): Inside a regular Power BI report, you can’t natively embed document previews due to security limitations, but there’s a workaround using a custom visual like “HTML Content” or “HTML Viewer” from the marketplace. Add a column with your SharePoint URLs (again, use ?web=1 at the end). In the custom visual, use the following HTML to embed the document:
3. Power Apps Visual: If your organization uses Power Apps, you can embed a Power Apps visual in your report that displays a SharePoint document preview. This is a bit more advanced, but offers more flexibility for interactive previews.
4. Clickable Link Column: If you just want users to quickly open the file, you can show the SharePoint link as a clickable hyperlink in your table or matrix visual. Clicking the link will open the doc in SharePoint in a new browser tab.