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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

reset slicers with bookmarks

Hi

 

I have the following slicers to filter data: 

 

juanbonosoinn_0-1595720295106.png

I have a teacher slicer(docente) to get the courses for the selected teacher(cursos). My idea is the following:

 

  • I have published these reports as an power bi app, so I can share them to the teachers.
  • I pass the id of the teacher as a query string through the url, when doing this only one teacher appears on the teacher slicer. 
  • I want the reset button(Reiniciar) to clear all the selections, however when i do this the whole list of teacher appears again because the bookmark has all the teachers unselected.

 

I have two questions:

  1. Do you have a better approach to share reports across different teachers? for the moment the approach of sending the id is working, but not sure if its the best solution
  2. How to use/create a bookmark to clear the slicers without showing the entire list of teachers? If there's another solution rathern than bookmarks, it would be good to know

 

 

1 ACCEPTED SOLUTION

RLS will restrict the entire report based on filters you set ,so you can set it up so that each teacher only sees their own info. That way, when you reset the slicers as you are currently doing, it will still only show the data for the teacher who is logged in, so while RLS doesn't help directly with resetting slicers, it will help with this scenario.
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

4 REPLIES 4
Robert1981
Helper II
Helper II

In my report I want to be able to switch all metrics in the dashboard between monhtly value or annual values.

How do I alter between both slicers and have the values alter dependent what slicer is used?

 

If both slicers are on screen, how do I ignore the month selection, if a year is selected?

Robert1981_0-1646791929698.png

 

 

AllisonKennedy
Super User
Super User

Do you ever need teachers to see other teachers data? If not, you could try Row Level Security instead of URL filter to limit the data each teacher sees to only their own.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

No, I just need the teacher to see its own information.

 

I have not heard about Row Level Security, i'll check that. What about how to reset slicers? will the RLS helped me with that?

RLS will restrict the entire report based on filters you set ,so you can set it up so that each teacher only sees their own info. That way, when you reset the slicers as you are currently doing, it will still only show the data for the teacher who is logged in, so while RLS doesn't help directly with resetting slicers, it will help with this scenario.
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.