March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a report that allows the user to switch the unit of measurement between Metric and US. The report is defaulted to Metric. However, as you could imagine, we would prefer to have it default to US for users in the US.
Is there a way to use something like the browser's locale to determine what a slicer's default value is?
I know that as a workaround, user specificied bookmarks may work. However, I believe that in our current embed environment, user bookmarks wouldn't be possible (or at least very difficult...) to implement.
Hi @kewaynes ,
It seems impossible.
If you would like to suggest feature improvements, you may vote the idea and comment here to improve this feature. It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for confirming.
I'm working on a workaround where the values and labels will default to a unit of measure based on the browser locale. And then if they select a Unit of Measure on the slicer it will change to that value. It makes the DAX more complicated and is not a perfect solution but it seems to be the best solution with the current capabilites.
But yes, I think submitting this as an idea is a good suggestion.
check link:
OR
https://www.youtube.com/watch?v=um0dTXZhuek
OR
To default a slicer selection based on the user's locale in Power BI, you can use Power BI's built-in parameter and DAX functions along with a measure that determines the user's locale. Here's a step-by-step guide on how to achieve this:
Create a Parameter for Unit of Measurement:
Create a Measure to Determine User Locale:
UserLocale = IF(CONTAINSSTRING(USERPRINCIPALNAME(), "@yourUSdomain.com"), "US", "Other")
Modify the UPN check based on your organization's domain or other criteria that indicate US users.
Set Default Slicer Selection:
Default Value =
SWITCH(
[UserLocale],
"US", "US",
"Metric"
)
Test Your Report:
This approach uses a parameter to control the slicer's default selection and a DAX measure to determine the user's locale based on their UPN. Make sure you adapt the UPN check to match your actual user domain(s). Keep in mind that this method assumes that your users are accessing the report through Power BI Service or Power BI Report Server, and you have integrated authentication to identify users' UPNs.
User-specific bookmarks would be an alternative approach if you could implement them, but the above method should work in your situation.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Thanks for the quick response and all the info. Would you be able to attach some screenshots for the steps of setting the 'Default Value' for the slicer? I am having trouble finding that in my desktop app.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |