Publishing Power BI dashboards to SF.gov
Specific instructions for Power BI users embedding dashboards on SF.gov.
Last updated
Specific instructions for Power BI users embedding dashboards on SF.gov.
Last updated
For both desktop and mobile, the width of the dashboard is set. The height may vary, but be sure to test your dashboard on the website.
Desktop: width must be 700, height 700-1100
Mobile - width must be 360, height 700-1200
The template has these sizes built in. While the width is set and must remain set (to fit the webpage), you may extend the length within reason (to 1100 for desktop, to 1200 for mobile).
Publish your dashboard to the specific workspace that houses your public dashboards. Read more about this on DataSF's Power BI Publish to Web Tip Sheet.
In order to embed on SF.gov, you will need to know your dashboard size.
To re-size the page or confirm the dimensions, go to the report editor (where you’re designing your dashboard). Click outside the dashboard to make sure no visual is selected, then click the page icon with a paint brush and then canvas settings.
Test your final dashboard in the website with different screen sizes to ensure you can see each visual in its entirety on the screen.
Ensure that the page view on both tabs of your dashboard are the default “fit to page”.
You will also need to get your embed codes for both the desktop and mobile view.
Within Power BI Online, navigate to your dashboard. Then click File, Embed report, Publish to web (public).
If you do not see this option to embed the report or publish to web, review DataSF's Power BI Publish to Web Tip Sheet. Then contact your IT or administrator to request the necessary account permissions.
You will need to copy the embed link for both your desktop view and your mobile view. Simply change the “default page” to get each link - and confirm the correct view is showing up in the preview window to the right!
You will then enter the URLs and the dashboard dimensions into SF.gov.