Sticky Slicer in top of the Scrolling Power BI page

Hi Teams,

I have a Power BI page with scroll means page size is Height 1500px and width 1280px.

I have three slicer on top page Country, State and City

Client requirement is, when scrolling down in the page, slicer is not visible. Please make the Slicer sticky so when scrolling down we can change the slicer and slicer should be visible.

Please find the attached sample PBIX file.

I tried to use CSS and Javascript code in measure " " but the measure is not working.

Is there are any way to solve the requirement.

Best Regards
Pijush
sample.pbix (158.5 KB)

@PijushRoy,

Power BI’s native design does not support “sticky” slicers as you’ve described. When the entire window requires scrolling, as is the case with your report, all elements on the page will move with the scroll.

A straightforward solution is to revisit the report’s design and layout. By rearranging or resizing visuals, you can optimize the available space, potentially reducing or even eliminating the need for scrolling. This might require adjusting the size of charts, tables, or other visuals to fit the window’s confines, which means making trade-offs in visualization size or data displayed.

Another approach is to divide the report into multiple pages. By categorizing visuals based on themes or topics, you can ensure all content is visible without scrolling.

Lastly, consider creating a dashboard instead of a single report page. Dashboards let you pin visuals from various report pages, including slicers, offering a more suitable layout for restricted window sizes.

3 Likes

Thank you very much @HufferD

I have created one sample pbix file but in production version report, we have many visual and all visual are arranged properly arranged. So I cant break in different page. This is also client requirement.

Are there any hack to achieve the requirement like using HTML Container or any other possibilities.

Best Regards
Pijush

Just a thought, if the slicer is at the top of the page, put the slicer at the side.

Did you try asking ChatGPT AI or another AI tool?

thanks
Keith

not that I’m aware of.

I think you’ll have to get creative and aim to strike a balance between comprehensiveness and user experience.

Some ideas:

  • showing fewer rows in a table at one time such that the slicers remain visible.

  • switching from a table visualization to a matrix and relying on expanding/condensing rows to keep the visualization height minimized.

  • rely on the built-in filter pane rather than slicer visuals. those won’t scroll when the widow scrolls and will enable users to filter values.

  • you could also leverage drill through such that your detail table appears in a new window all its own.

  • you might want to make use of bookmarks to save various different views. you could use field parameters for that, too.

  • you could also collapse some visuals into report tooltips.

it may involve some comprises :slight_smile:

Use a paginated report … parameters (slicers) remain visible in the container header at all times

Hi @PijushRoy,

Rearranging visuals as mentioned by the others to align with the most common end user screen resolution is the most robust approach.

I can think of a couple options that should work without creating a custom HTML/page viewer: require the users to have rectangle monitors that can be rotated from landscape to portrait mode; or set the default report page view value to “Actual size” or “Fit to width” and then have the users toggle the page view to “Fit to page” when they want to see the table at the bottom.

I have one report with a large table at the bottom very similar to yours, and I use the second technique for that one defaulting to “Actual size”.

There is technically one other option, which is to have the users zoom the browser window. I am mainly using Power BI Report Server on-prem, and the report content is not affected by zooming the content in or out (a major pain on small laptop screens). However, I happen to have one Power BI report hosted in the service and sitting on Dynamics/Dataverse. I just checked the browser zoom support both for a direct access report and a report rendered in a Power BI app, and it works! It also only zooms the report page, not the nav pane or filter pane (the exact opposite of on-prem :crazy_face:).

So, you could instruct your users on how to zoom the content in or out as needed to avoid the scrolling. The shortcut key is to hold down Ctrl and scroll your mouse wheel.

I hope this helps!

John

1 Like