<?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: valueFormatter ignores culture for displayUnit in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/590435#M17983</link>
    <description>&lt;P&gt;I'm using formatting utils with new powerbi-visual-tools 3 (beta) and get some behavior. When this bug will fix?&lt;/P&gt;</description>
    <pubDate>Sat, 22 Dec 2018 18:48:25 GMT</pubDate>
    <dc:creator>popov</dc:creator>
    <dc:date>2018-12-22T18:48:25Z</dc:date>
    <item>
      <title>valueFormatter ignores culture for displayUnit</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/493226#M15105</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm having little trouble with valueFormatter as I can't get it format my values as expected in&amp;nbsp;terms of the unit abbreviation and the given culture. Even though it produces the correct decimal character (comma), the unit abbreviation still looks like for the default culture ("en-US").&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here's what I've done:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;visual.ts:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;import valueFormatter = powerbi.extensibility.utils.formatting.valueFormatter;&lt;BR /&gt;...&lt;BR /&gt;let formatterOptions : utils.formatting.ValueFormatterOptions = {&lt;BR /&gt;	value: 1000,&lt;BR /&gt;	precision: 1,&lt;BR /&gt;	cultureSelector: options.host.locale // "de-DE"&lt;BR /&gt;}; &lt;BR /&gt;let formatter = valueFormatter.create(formatterOptions);&lt;BR /&gt;let v = formatter.format(2500); // gives 2,5K and not 2,5 Tsd. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/PRE&gt;pbiviz.json:&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;... &lt;BR /&gt;"externalJS": [
    "node_modules/globalize/lib/globalize.js",
    "node_modules/globalize/lib/cultures/globalize.cultures.js",&lt;BR /&gt;...&lt;/PRE&gt;Is there anything wrong with my code?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help will be appreciated. Thank you.&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Aug 2018 09:32:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/493226#M15105</guid>
      <dc:creator>Martin18</dc:creator>
      <dc:date>2018-08-18T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: valueFormatter ignores culture for displayUnit</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/493726#M15116</link>
      <description>&lt;P&gt;It looks like postfix has not been localized for all of languages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a new bug in GitHub: &lt;A href="https://github.com/Microsoft/powerbi-visuals-utils-formattingutils" target="_self"&gt;https://github.com/Microsoft/powerbi-visuals-utils-formattingutils&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/493726#M15116</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-20T07:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: valueFormatter ignores culture for displayUnit</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/590435#M17983</link>
      <description>&lt;P&gt;I'm using formatting utils with new powerbi-visual-tools 3 (beta) and get some behavior. When this bug will fix?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 18:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/590435#M17983</guid>
      <dc:creator>popov</dc:creator>
      <dc:date>2018-12-22T18:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: valueFormatter ignores culture for displayUnit</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/590688#M17989</link>
      <description>&lt;P&gt;Did you face exactly the same issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 07:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/valueFormatter-ignores-culture-for-displayUnit/m-p/590688#M17989</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-12-24T07:06:17Z</dc:date>
    </item>
  </channel>
</rss>

