The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
We have a report as shown below with the slicer "Manager".
Our requirement is to when user login the Manager slicer default value to the users manager.
Ex: If John login, Manager slicer default vaule should be "Raghavan"
If Robin login, Manager slicer default value should be "Kevin"
Slicer default value should change based on the user login.
Sales Rep | Manager | Sales |
John | Raghavan | 5000 |
Peter | Robert | 2000 |
Karan | Srini | 3000 |
Robin | Kevin | 7000 |
When John login the slicer should be default to his manager "Raghavan".
When Robin login the slicer should be default to his manager "Kevin"
Could anyone please help me on this requirement.
Thanks,
Suresh.
@Bibiano_Geraldo @rajendraongole1 @Ritaf1983 @danextian @lbendlin @Ritaf1983 @bhanu_gautam
Solved! Go to Solution.
Hi @sureshg2498 ,
Based on your request i am sharing the PBIX file as below.
Hope this helps!!
If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!
Perfect,I appreciate you taking the time to answer. Thank you so much.
Hi @sureshg2498 ,
Fantastic scenario and a classic use case for dynamic personalization in Power BI! Here’s how you can set dynamic default slicer values based on the logged-in user’s manager. This approach works without any custom visuals or unsupported hacks, using DAX, USERNAME(), and clever modeling.
John | Raghavan |
Peter | Robert |
Karan | Srini |
Robin | Kevin |
CurrentUser = DISTINCT('Sales'[Sales Rep])
CurrentUser = SELECTCOLUMNS( FILTER('Sales', 'Sales'[Sales Rep] = USERNAME()), "User", 'Sales'[Sales Rep] )
SelectedManager = VAR CurrentUser = LOOKUPVALUE( 'Sales'[Manager], 'Sales'[Sales Rep], USERNAME() ) RETURN CurrentUser
Summary Table:
Step ActionData Model | Ensure mapping between user and manager |
DAX | Use USERNAME() to identify the user |
Measure | Create a measure to dynamically fetch the manager |
Slicer | Use bookmarks or filter logic for default selection |
UX | Optional: Bookmark navigation for best user experience |
You inspired a solution that will help many others with similar requirements—thanks for sharing such a clear example!
Let me know if you want a PBIX demo file or step-by-step screenshots.
You’re raising the bar for Power BI personalization questions—well done!
translation and formatting supported by AI
Thank you so much Burakkaragoz. Could you please share the PBIX file.
Hi @sureshg2498 ,
Based on your request i am sharing the PBIX file as below.
Hope this helps!!
If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!
Perfect,I appreciate you taking the time to answer. Thank you so much.
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
95 | |
81 | |
55 | |
48 | |
48 |