Posts

Showing posts with the label powerbi-embedded

Switch between mobile and desktop view in power bi embedded

Switch between mobile and desktop view in power bi embedded I have a power bi report with both desktop and mobile views. I'd like the browser to switch between these views as it resizes. The only way I can currently achieve this is to embed two instances of the report into the browser, one mobile the other desktop, and hide and show them depending on the browser size. The problem with this is that if I set some filter values when in the desktop view then, narrow the browser so that the mobile view is shown, then the filter values are not same, this obviously being because there are in reality two separate reports. The other downside of this approach is that I am presumably also incurring the performance cost on my database of generating two reports. What can I do to only embed a single report that can dynamically switch between mobile and desktop views? UPDATE Following response below, test code to toggle layout between mobile and custom layout angular.element($window).on('resi...