<?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 Custom Visual Rounding Issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2754934#M38505</link>
    <description>&lt;P&gt;If you have a measure that performs the calculation (29 / 200) * 100, and format the measure using the formatting tool in the PBI Desktop ribbon to 0 decimal places, custom visuals show a different value to the core built-in visuals.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saviourofdp_0-1662630295911.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/780007i10AB6926ED509DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saviourofdp_0-1662630295911.png" alt="saviourofdp_0-1662630295911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I understand that this is due to floating point precision issues and the result in the example is not exactly 14.5 but actually 14.4999999999999998. When rounded, this gives 14 in the custom visual as you can see. I've seen this in all certified custom visuals in the store and my own custom visuals (even when using the formatting utilities library). Has anyone solved this generally when developing visuals? I know this can be solved by rounding the result in DAX in the report itself but that's out of the hands of a custom visual developer.&lt;BR /&gt;&lt;BR /&gt;In short, how do I ensure that my custom visual displays the same value as the core built-in visuals with respect to floating point imprecision?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 09:57:02 GMT</pubDate>
    <dc:creator>saviourofdp</dc:creator>
    <dc:date>2022-09-08T09:57:02Z</dc:date>
    <item>
      <title>Custom Visual Rounding Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2754934#M38505</link>
      <description>&lt;P&gt;If you have a measure that performs the calculation (29 / 200) * 100, and format the measure using the formatting tool in the PBI Desktop ribbon to 0 decimal places, custom visuals show a different value to the core built-in visuals.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saviourofdp_0-1662630295911.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/780007i10AB6926ED509DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saviourofdp_0-1662630295911.png" alt="saviourofdp_0-1662630295911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I understand that this is due to floating point precision issues and the result in the example is not exactly 14.5 but actually 14.4999999999999998. When rounded, this gives 14 in the custom visual as you can see. I've seen this in all certified custom visuals in the store and my own custom visuals (even when using the formatting utilities library). Has anyone solved this generally when developing visuals? I know this can be solved by rounding the result in DAX in the report itself but that's out of the hands of a custom visual developer.&lt;BR /&gt;&lt;BR /&gt;In short, how do I ensure that my custom visual displays the same value as the core built-in visuals with respect to floating point imprecision?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2754934#M38505</guid>
      <dc:creator>saviourofdp</dc:creator>
      <dc:date>2022-09-08T09:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Rounding Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2757885#M38538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22039"&gt;@saviourofdp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;What custom visual you are using? Is that developed by you? Or you get it from &lt;A href="https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals" target="_self"&gt;AppSource&lt;/A&gt;? If it get from AppSource, you can try to&amp;nbsp;&lt;SPAN&gt;contact &lt;A href="mailto:pbicvsupport@microsoft.com" target="_self"&gt;custom visual support team&lt;/A&gt; to get professional help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCustom-Visuals-Development%2FPower-BI-Custom-Visuals-Community%2Fm-p%2F667211%23M2029&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cfcda75d51a08472c68cc08da1bbb9482%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637852789959487687%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&amp;amp;sdata=z0vZO7ZBT48xynevS%2BAWugsjWaEbazbzOajAqjKM1W8%3D&amp;amp;reserved=0" target="_self"&gt;Power BI Custom Visuals' Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 10:02:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2757885#M38538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-09T10:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Rounding Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2757901#M38539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;it is from AppSource however that wasn't my point. I'm seeing this issue when developing my own visuals and I was demonstrating that all certified visuals in AppStore that I've tried are also exhibiting that behaviour. I want to implement a fix for this in my own visuals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 10:06:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Rounding-Issue/m-p/2757901#M38539</guid>
      <dc:creator>saviourofdp</dc:creator>
      <dc:date>2022-09-09T10:06:49Z</dc:date>
    </item>
  </channel>
</rss>

