<?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: Custom Visual Field Formating in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/787890#M2524</link>
    <description>&lt;P&gt;can you provide me the code that you mention?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 06:44:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-10T06:44:58Z</dc:date>
    <item>
      <title>Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/780505#M2488</link>
      <description>&lt;P&gt;I'm working in a custom visual and i need to implement Field Formatting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to store different settings for every metric i have inserted in the visual&lt;/P&gt;&lt;P&gt;like the way it is implemented in matrix visual on power bi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there any reference or source code on git hub on how to implement this feature&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 21:15:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/780505#M2488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T21:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/780534#M2489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If I understand correctly, you're looking to do something like &lt;A href="https://community.powerbi.com/t5/Custom-Visuals-Development/Dynamically-generate-enumeration-object/m-p/753224#M2397" target="_self"&gt;in this thread&lt;/A&gt;? Last we heard, this is not supported for custom visuals and only works in the core visuals, which is a shame, as I really, really want to be able to do it myself.&lt;/P&gt;&lt;P&gt;An alternative is to create a formatting field for each measure in the properties pane, which is not as elegant but gets the job done. The tutorial to do something similar is linked in that thread also. I have a couple of examples in a visual I produce that uses the &lt;FONT face="courier new,courier"&gt;categorical dataViewMapping&lt;/FONT&gt; (which isn't formatting but generates a text field for each category) which I can provide if this would be useful to you? You would use these in a similar way to take a format string and then use TS code to apply the formatting specified in the field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 01:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/780534#M2489</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-31T01:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/781486#M2493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use &lt;A href="https://github.com/microsoft/powerbi-visuals-utils-formattingutils/blob/master/docs/usage/usage-guide.md" target="_self"&gt;this utility&lt;/A&gt; please.&lt;/P&gt;&lt;P&gt;You could check &lt;A href="https://github.com/microsoft/PowerBI-visuals-MultiKPI/blob/master/capabilities.json#L44" target="_self"&gt;MultiKPI visual repository&lt;/A&gt;, for instance, to find how to store and work with a format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 14:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/781486#M2493</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-09-02T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/787890#M2524</link>
      <description>&lt;P&gt;can you provide me the code that you mention?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:44:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/787890#M2524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/788467#M2531</link>
      <description>&lt;P&gt;First of all, you should &lt;A href="https://github.com/microsoft/PowerBI-visuals-MultiKPI/blob/7e3b653a6a24ce1bb2b5f0d1826fe026be64598f/src/converter/data/dataFormatter.ts#L50" target="_self"&gt;create a formatter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-MultiKPI/blob/7e3b653a6a24ce1bb2b5f0d1826fe026be64598f/src/converter/data/dataFormatter.ts#L53" target="_self"&gt;Here&lt;/A&gt;, you should pass a format.&lt;/P&gt;&lt;P&gt;Then, you should &lt;A href="https://github.com/microsoft/PowerBI-visuals-MultiKPI/blob/7e3b653a6a24ce1bb2b5f0d1826fe026be64598f/src/visualComponent/mainChart/axisComponent.ts#L105" target="_self"&gt;call "format" function of the formatter&lt;/A&gt; that will return formatted value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that it will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/788467#M2531</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-09-10T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/791683#M2537</link>
      <description>&lt;P&gt;in the dropdown which i have in the settings in order to select the metric i do not see the names&amp;nbsp;&lt;/P&gt;&lt;P&gt;of the metrics although i pass them correctly. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 191px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/192386i047E7D80869ABF10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:14:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/791683#M2537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-13T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Field Formating</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/793394#M2546</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should see how you set it inside capabilities.json to figure out what is wrong.&lt;/P&gt;&lt;P&gt;I can only suggest that you didn't set "displayName" property for an item as on below picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EnumDisplayName.PNG" style="width: 480px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/192851iF202969A20F33FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="EnumDisplayName.PNG" alt="EnumDisplayName.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Field-Formating/m-p/793394#M2546</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-09-16T14:44:59Z</dc:date>
    </item>
  </channel>
</rss>

