Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Disable sorting for multiple stacked bar visual

Hi!  I need to be able to turn off the ability for users of my report to sort a stacked bar visual.

 

I'm working with a multiple stacked bar visual that displays the results of 10 survey questions.  There's one horizontal stacked bar per question, and the segments of the bars are the percentage of respondents who selected strongly agree, somewhat agree, etc.

 

I'll be putting a text box with the survey question to the left of each bar.  I don't want the users of my report to be able to sort and change the order of the bars themselves; doing so would mean that the survey question text boxes no long align with the correct bars.  How can I freeze the order of the bars (disable sort for my users)?

 

As a note, yes, I'm aware that it's possible to build the survey questions as bar labels into the visual itself, and that doing so would mean the labels would stay with the correct bars if the whole visual gets sorted.  That's not an acceptable solution for me, though, because I want control over the formatting of the bar labels: for example, to text-wrap them, bold certain words but not all of them, etc.  (Some of the survey questions are quite long.)  As far as I know, it's not possible to do that level of detailed formatting with built-in bar labels--but please correct me if I'm wrong!--so using text boxes seems like the best solution, as long as I can prevent my users from shuffling the bars around.

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found an acceptable workaround (though not a perfect solution for all use cases).  https://community.powerbi.com/t5/Desktop/Disable-the-More-Options-available-on-the-top-right-hand-si...

Essentially, if you disable the More options menu (the three-dots menu) for that visual, it takes away the ability to sort the visual while in viewer mode.  You also lose all the other functions in that menu, such as Export data and Spotlight, but for my specific use case, it's worth it.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I found an acceptable workaround (though not a perfect solution for all use cases).  https://community.powerbi.com/t5/Desktop/Disable-the-More-Options-available-on-the-top-right-hand-si...

Essentially, if you disable the More options menu (the three-dots menu) for that visual, it takes away the ability to sort the visual while in viewer mode.  You also lose all the other functions in that menu, such as Export data and Spotlight, but for my specific use case, it's worth it.

Anonymous
Not applicable

Hi @Anonymous ,

 

Based on my test, even if the users are granted with Viewer permissions, the Sort function in visualizations is still available.

 

But you could use "Embed to web page" to work around this problem. In this case, they will not be able to use Sort by.

 

2.16.1.1.PNG

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Don't do that. Do not rob your users of their UX.  Find a different solution.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.