<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filtering data on selected language in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4700122#M180041</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;V-yubandi-msft for the advice!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got rid of the RLS approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have extended the original overview table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;with the columns language and.&lt;/P&gt;&lt;P&gt;Then I have duplicated the row for each language ("amount of languages" times row 1, ...).&lt;/P&gt;&lt;P&gt;And for each row, I took the translation in the language of that row.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 12:56:49 GMT</pubDate>
    <dc:creator>Boeboey</dc:creator>
    <dc:date>2025-05-20T12:56:49Z</dc:date>
    <item>
      <title>Filtering data on selected language</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699564#M180020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a multi-language report based on the USERCULTURE().&lt;/P&gt;&lt;P&gt;I started by creating a measure:&amp;nbsp;&lt;SPAN&gt;Selected_Language =&lt;/SPAN&gt; &lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;USERCULTURE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns the language: en, nl, fr, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an overview of events, each containing a code for department, function, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I imported an excel containing "codes" and their translations for certain tables:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Department&amp;nbsp;&lt;img /&gt;&lt;/LI&gt;&lt;LI&gt;Function&lt;img /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Based on the selected_language measure, I would like to display the correct value for department and function for each event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created un unpivoted table "Safety codes" containing all codes:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a parameter "Language" that I used to filter on role level:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to be working fine:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, to be able to use this approach, the user needs to be a viewer, not a member or contributer.&lt;/P&gt;&lt;P&gt;But as a viewer, the user is not able to pin certain visuals to a dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix this? Or is there another approach?&lt;/P&gt;&lt;P&gt;Without the RLS filtering, the values in all languages are shown:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for some feedback on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 07:44:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699564#M180020</guid>
      <dc:creator>Boeboey</dc:creator>
      <dc:date>2025-05-20T07:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on selected language</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699590#M180022</link>
      <description>&lt;P&gt;I also tried another approach without using the parameter "language" and row level security.&lt;/P&gt;&lt;P&gt;I have added a slicer "language" which is referring to the unpivoted table "Safety codes":&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when selecting an item froml Department, the visual Function is not filtered at all:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The relationships are looking like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 07:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699590#M180022</guid>
      <dc:creator>Boeboey</dc:creator>
      <dc:date>2025-05-20T07:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on selected language</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699953#M180034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="401421" data-lia-user-login="Boeboey" class="lia-mention lia-mention-user"&gt;Boeboey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Fabric community.&amp;nbsp; You’re good, and We appreciate you sharing details along with snapshots they make troubleshooting much easier. We&amp;nbsp;&amp;nbsp;wanted to build on your approach and address the challenges you mentioned regarding RLS&amp;nbsp; and filtering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 11:05:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4699953#M180034</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-20T11:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on selected language</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4700122#M180041</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;V-yubandi-msft for the advice!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got rid of the RLS approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have extended the original overview table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;with the columns language and.&lt;/P&gt;&lt;P&gt;Then I have duplicated the row for each language ("amount of languages" times row 1, ...).&lt;/P&gt;&lt;P&gt;And for each row, I took the translation in the language of that row.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 12:56:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-on-selected-language/m-p/4700122#M180041</guid>
      <dc:creator>Boeboey</dc:creator>
      <dc:date>2025-05-20T12:56:49Z</dc:date>
    </item>
  </channel>
</rss>

