<?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: Calculations in Schema in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2801#M179</link>
    <description>&lt;P&gt;Hi Adetweiler,&lt;/P&gt;&lt;P&gt;Assuming you want to do this in Analyzer or the Business View you can simply multiply the numeric field by 100 to move the decimals then apply round to the 3rd point of precision determines the rounding up or down, then simply divide by 100 to reset to your 2 decimals as follows:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;ROUND(&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;100&amp;nbsp;*&amp;nbsp;&lt;STRONG&gt;YourField&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;)&amp;nbsp;/&amp;nbsp;100&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;There is also the option to derive this in the physical schema which would allow you to use PL-SQL to derive this with the syntax you currently use in the source table or materialized view.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Zach&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Sep 2022 20:26:39 GMT</pubDate>
    <dc:creator>ZachBreimayer</dc:creator>
    <dc:date>2022-09-28T20:26:39Z</dc:date>
    <item>
      <title>Calculations in Schema</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2795#M177</link>
      <description>&lt;P&gt;Two questions -&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Round - according to documentation and per our testing round only works to the nearest whole integer. Anyone find a way to round to two decimals (like you can in Oracle SQL developer or excel?)&lt;/P&gt;&lt;P&gt;Ex. 2.5621 in incorta will round to 3 but we want to round to 2.56 as part of an additional calculation&lt;/P&gt;&lt;P&gt;2. Standard Deviation - in oracle it is Std function and&amp;nbsp; stdev.p function&lt;/P&gt;&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="19"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;AVG&lt;/TD&gt;&lt;TD width="64"&gt;STDEV.P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;input&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;input&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;input&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;calc&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;12.24745&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:45:04 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2795#M177</guid>
      <dc:creator>Adetweiler</dc:creator>
      <dc:date>2022-09-28T17:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Schema</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2801#M179</link>
      <description>&lt;P&gt;Hi Adetweiler,&lt;/P&gt;&lt;P&gt;Assuming you want to do this in Analyzer or the Business View you can simply multiply the numeric field by 100 to move the decimals then apply round to the 3rd point of precision determines the rounding up or down, then simply divide by 100 to reset to your 2 decimals as follows:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;ROUND(&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;100&amp;nbsp;*&amp;nbsp;&lt;STRONG&gt;YourField&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#339966"&gt;)&amp;nbsp;/&amp;nbsp;100&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;There is also the option to derive this in the physical schema which would allow you to use PL-SQL to derive this with the syntax you currently use in the source table or materialized view.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Zach&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Sep 2022 20:26:39 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2801#M179</guid>
      <dc:creator>ZachBreimayer</dc:creator>
      <dc:date>2022-09-28T20:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Schema</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2857#M188</link>
      <description>&lt;P&gt;Thanks will try! Sorry for the delay i didnt get an email/will check email boxes. This answer only applies to the first scenario, any thought on the second?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 20:28:01 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/2857#M188</guid>
      <dc:creator>Adetweiler</dc:creator>
      <dc:date>2022-10-04T20:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Schema</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/3337#M254</link>
      <description>&lt;P&gt;Hi Adetweiler,&lt;/P&gt;&lt;P&gt;For the Standard Deviation you may want to simply edit the SQL and run that function directly on the table in the physical schema itself, alternatively you could create and MV and use STD function and curate the MV to support your use case.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:17:04 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/calculations-in-schema/m-p/3337#M254</guid>
      <dc:creator>ZachBreimayer</dc:creator>
      <dc:date>2022-11-22T20:17:04Z</dc:date>
    </item>
  </channel>
</rss>

