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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
sonado79
Frequent Visitor

dynamically switch column for slicer based on userculture

Hi,

I did a lot of research in the internet but found no answer for the following problem.

 

I have a fact table for some transactions that took place in different countries.
The country information is saved in 2 columns:
- country_ger (with country name in german) and

- country_en (with country name in english)

 

Now I made a lot of localization for the report and I'm very happy with that. But I'm not able, to build a slicer that refers to the one column or to the other, depending on what userculture() the user of the report has.


In case userculture() = "en-US" I want the country_en column to be used for the slicer, respectively if userculture = "de-DE" I want the country_ger column in the slicer.


All of that without using a button so that the report user does not mention this switch in underlying columns.


I'm happy and thankful for any advice.

Thanks a lot,

Kevin

3 REPLIES 3
Markan
Advocate I
Advocate I

Hi @sonado79
Did you manage to find solution for this? I am also encountering same problem. I want to switch columns on visual based on UserCulture so it is shown when report is loaded to user, but I had no luck in finding solution for it 😔 

Idrissshatila
Super User
Super User

Hello @sonado79 ,

 

You could acheive this using field Parameters, check this documentation for instructions https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi @Idrissshatila ,

I thought and tried to achieve this with field parameters, but had no success 😏

Just to make it clear, I do not want to change the axis of a bar chart for example by using a field parameter in the slicer. I want to react on the userculture of the user when he/she opens the report and automatically show the one or the other entries from the one or the other column in one and the same slicer ...

maybe you can give me a further hint on how to achieve this ... 

thanks a lot,

Kevin

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

OSZAR »