<?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 Power BI JavaScript API userculture does not work correctly today multi-language reports in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2012961#M31074</link>
    <description>&lt;P&gt;This is very impressive webinar about multilanguage reports&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/join-us-power-bi-dev-camp-thursday-22-july-2021-building-multi-language-reports-for-power-bi/" target="_blank" rel="noopener"&gt;Join us! Power BI Dev Camp &amp;amp;#8211; Thursday 22 July, 2021- Building Multi-language Reports for Power BI | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Are there any changes happening in the Power BI JavaScript API? Live demo (&lt;A href="https://multilanguagereportdemo.azurewebsites.net/" target="_blank" rel="noopener"&gt;https://multilanguagereportdemo.azurewebsites.net/&lt;/A&gt;) does not work correctly today. UserCulture funktion return 'en-US' value for all report sizes. Yesterday it worked correctly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marilaitala_0-1628768304041.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/571925iD6EE1D66B6761ED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marilaitala_0-1628768304041.png" alt="marilaitala_0-1628768304041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made my own PBI multi-language report with the same technigue: yesterday it worked correctly, but today userculture&amp;nbsp;return 'en-US' value to all.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 11:49:04 GMT</pubDate>
    <dc:creator>marilaitala</dc:creator>
    <dc:date>2021-08-12T11:49:04Z</dc:date>
    <item>
      <title>Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2012961#M31074</link>
      <description>&lt;P&gt;This is very impressive webinar about multilanguage reports&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/join-us-power-bi-dev-camp-thursday-22-july-2021-building-multi-language-reports-for-power-bi/" target="_blank" rel="noopener"&gt;Join us! Power BI Dev Camp &amp;amp;#8211; Thursday 22 July, 2021- Building Multi-language Reports for Power BI | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Are there any changes happening in the Power BI JavaScript API? Live demo (&lt;A href="https://multilanguagereportdemo.azurewebsites.net/" target="_blank" rel="noopener"&gt;https://multilanguagereportdemo.azurewebsites.net/&lt;/A&gt;) does not work correctly today. UserCulture funktion return 'en-US' value for all report sizes. Yesterday it worked correctly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marilaitala_0-1628768304041.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/571925iD6EE1D66B6761ED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marilaitala_0-1628768304041.png" alt="marilaitala_0-1628768304041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made my own PBI multi-language report with the same technigue: yesterday it worked correctly, but today userculture&amp;nbsp;return 'en-US' value to all.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 11:49:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2012961#M31074</guid>
      <dc:creator>marilaitala</dc:creator>
      <dc:date>2021-08-12T11:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2017453#M31142</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/319484"&gt;@marilaitala&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In import mode, does the userculture function return the correct value?&lt;/P&gt;
&lt;P&gt;If you connect to SSAS using a live connection,please try&amp;nbsp;&lt;SPAN&gt;configuring the language of each user in a table and implement the translations in a similar way of the Row Level Security.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 05:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2017453#M31142</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-08-16T05:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2017644#M31146</link>
      <description>&lt;P&gt;Hi Liang,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ted Pattison, Microsoft principal program manager with&amp;nbsp;Power BI, has made this&amp;nbsp; live demo using import mode&lt;BR /&gt;&lt;A href="https://multilanguagereportdemo.azurewebsites.net/" target="_blank"&gt;Power BI Embedded sample (multilanguagereportdemo.azurewebsites.net)&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Earlier in this live demo UserCulture funktion return correct value, but from Thursday 12 of August userculture&amp;nbsp;return 'en-US' value for all cases. This same Power BI Desktop file works fine in PowerBI Desktop and userculture return correct value in there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Mari&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 06:32:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2017644#M31146</guid>
      <dc:creator>marilaitala</dc:creator>
      <dc:date>2021-08-16T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2018975#M31162</link>
      <description>&lt;P&gt;When we embed a report we perform the following:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const &lt;FONT color="#FF0000"&gt;lang&lt;/FONT&gt; = this.user ? this.user.profile['locale'] : 'en-GB';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const config: any = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'report',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: this.id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; embedUrl: this.embedUrl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accessToken: this.accessToken,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenType: pbi.models.TokenType.Embed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filterPaneEnabled: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; navContentPaneEnabled: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layoutType: this.layout,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localeSettings: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language: &lt;FONT color="#FF0000"&gt;lang&lt;/FONT&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatLocale: &lt;FONT color="#FF0000"&gt;lang&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const divElement: HTMLElement = &amp;lt;HTMLElement&amp;gt;this.powerBIReports.nativeElement;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.powerbi.reset(divElement);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.report =&amp;nbsp; this.powerbi.embed(divElement, config);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see from the example above that we are passing a culture in the localeSettings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within our report itself we have a dax expression similar to:-&lt;/P&gt;&lt;P&gt;VAR UC = CALCULATE(MIN(usercultures[Locale]),FILTER(usercultures,usercultures[Code] = USERCULTURE()))&lt;/P&gt;&lt;P&gt;Return&amp;nbsp; UC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The USERCULTURE() no longer resolves to the culture passed in when embedded (see highlighted red), it evaluates as en-US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have also logged this as a ticket with Microsoft.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 14:57:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2018975#M31162</guid>
      <dc:creator>Nojustice</dc:creator>
      <dc:date>2021-08-16T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2023677#M31206</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;thank you so much for this advice. We have just making these config changes to our own embed report, but we noticed about hour ago that live demo report works correct again!&amp;nbsp;&lt;A href="https://multilanguagereportdemo.azurewebsites.net/" target="_blank"&gt;Power BI Embedded sample (multilanguagereportdemo.azurewebsites.net)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Has Microsoft made any corrections to "userculture"-funktion due this ticket? We hope that it works correctly at all times.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mari&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2023677#M31206</guid>
      <dc:creator>marilaitala</dc:creator>
      <dc:date>2021-08-18T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2173468#M32751</link>
      <description>&lt;P&gt;We experience the same issue. Is there a solution yet?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/2173468#M32751</guid>
      <dc:creator>bmeints</dc:creator>
      <dc:date>2021-11-04T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI JavaScript API userculture does not work correctly today multi-language reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/3975170#M53153</link>
      <description>&lt;P&gt;Hi, I am experiencing the same issue now, with powerbi js client v. 2.23.1.&amp;nbsp;&lt;SPAN&gt;USERCULTURE() is not reflecting the specified&amp;nbsp;localeSettings in embedded mode. Did this eventually work for you (long time ago now I realize...)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 18:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-JavaScript-API-userculture-does-not-work-correctly/m-p/3975170#M53153</guid>
      <dc:creator>Eric7</dc:creator>
      <dc:date>2024-06-05T18:15:06Z</dc:date>
    </item>
  </channel>
</rss>

