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
Boeboey
Frequent Visitor

Filtering data on selected language

Hi,

 

I'm trying to create a multi-language report based on the USERCULTURE().

I started by creating a measure: Selected_Language = LEFT(USERCULTURE(),2)

This returns the language: en, nl, fr, ...

 

I have an overview of events, each containing a code for department, function, ...

Boeboey_1-1747725340698.png

 

I imported an excel containing "codes" and their translations for certain tables:

  • Department 2025-05-20 09 09 49.png
  • Function2025-05-20 09 10 11.png

Based on the selected_language measure, I would like to display the correct value for department and function for each event.

 

I created un unpivoted table "Safety codes" containing all codes:

Boeboey_0-1747725226228.png

 

I created a parameter "Language" that I used to filter on role level:

Boeboey_2-1747725917346.png

 

This seems to be working fine:

Boeboey_3-1747725953154.png

However, to be able to use this approach, the user needs to be a viewer, not a member or contributer.

But as a viewer, the user is not able to pin certain visuals to a dashboard.

 

Any idea how to fix this? Or is there another approach?

Without the RLS filtering, the values in all languages are shown:

Boeboey_4-1747726099335.png

 

Thanks for some feedback on this.

 

1 ACCEPTED SOLUTION
V-yubandi-msft
Community Support
Community Support

Hi @Boeboey ,

Thanks for reaching out to the Fabric community.  You’re good, and We appreciate you sharing details along with snapshots they make troubleshooting much easier. We  wanted to build on your approach and address the challenges you mentioned regarding RLS  and filtering.

 

1. Since RLS prevents users from pinning visuals to dashboards, you might want to reconsider using it for this scenario. Instead, a better approach would be to dynamically filter translations without RLS.

2. To do this, you can create a measure or calculated column that pulls the correct translation from the Safety Codes table based on the Selected Language measure. This method ensures flexibility and keeps your reports dynamic.

3. Your data relationships are structured correctly! Keeping Department and Function separate enables independent lookups for each, which works perfectly with your unpivoted Safety Codes table.

 

I hope this helps..

 

 

 

View solution in original post

3 REPLIES 3
V-yubandi-msft
Community Support
Community Support

Hi @Boeboey ,

Thanks for reaching out to the Fabric community.  You’re good, and We appreciate you sharing details along with snapshots they make troubleshooting much easier. We  wanted to build on your approach and address the challenges you mentioned regarding RLS  and filtering.

 

1. Since RLS prevents users from pinning visuals to dashboards, you might want to reconsider using it for this scenario. Instead, a better approach would be to dynamically filter translations without RLS.

2. To do this, you can create a measure or calculated column that pulls the correct translation from the Safety Codes table based on the Selected Language measure. This method ensures flexibility and keeps your reports dynamic.

3. Your data relationships are structured correctly! Keeping Department and Function separate enables independent lookups for each, which works perfectly with your unpivoted Safety Codes table.

 

I hope this helps..

 

 

 

Thanks V-yubandi-msft for the advice!

 

I got rid of the RLS approach.

I have extended the original overview table:

Boeboey_0-1747745492568.png

with the columns language and.

Then I have duplicated the row for each language ("amount of languages" times row 1, ...).

And for each row, I took the translation in the language of that row.

E.g.

Boeboey_1-1747745690512.png

In this way, I had the language, all codes and the translations in this language for the codes for each event in 1 table. The language column of this table is now used as slicer across all pages.

 

Boeboey
Frequent Visitor

I also tried another approach without using the parameter "language" and row level security.

I have added a slicer "language" which is referring to the unpivoted table "Safety codes":

Boeboey_2-1747726881687.png

 

Boeboey_1-1747726829862.png

 

But when selecting an item froml Department, the visual Function is not filtered at all:

Boeboey_3-1747726940977.png

The relationships are looking like this:

Boeboey_4-1747727018760.png

 

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.