<?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: Ratio in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23457#M3630</link>
    <description>Thank you, Chris. I sent you a separate email. I think it's possible that it's a format issue? I tried summarizing the amounts manually in Excel using the values of the tables used as source by the OLAP cube. It appears that there are two items that did not match because of the decimal values, although when rounded off to two decimals they get the same value. The wierd thing though is that none of them matched the RAW VALUE produced in the EG subtotal.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;Excel Manual Summation:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;0.00000&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.00055&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;Query using SAS Base:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;0&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.0008544922&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;EG Subtotal Raw Value:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;4.43458557128906E-05&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.000868320465087891&lt;/B&gt;.</description>
    <pubDate>Thu, 28 Oct 2010 08:38:18 GMT</pubDate>
    <dc:creator>louise</dc:creator>
    <dc:date>2010-10-28T08:38:18Z</dc:date>
    <item>
      <title>Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23454#M3627</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Would like to know how EG generates the resulting values if the expected output is undefined value?&lt;BR /&gt;
&lt;BR /&gt;
In our scenario, we are computing for ratio with the following given values:&lt;BR /&gt;
&lt;BR /&gt;
      numerator = 15,123,021,740.41&lt;BR /&gt;
&lt;BR /&gt;
      denominator = 0&lt;BR /&gt;
&lt;BR /&gt;
      generated ratio = 1741640597964550%&lt;BR /&gt;
&lt;BR /&gt;
 Although, the data should not have a 0 denominator, just want to ask how EG was able to get the value 1741640597964550%? Moreover, the client tried re-generating the report using same data but the ratio output displayed a different value, 34102446547241500%. Howcome the values are inconsistent? &lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 27 Oct 2010 04:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23454#M3627</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2010-10-27T04:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23455#M3628</link>
      <description>We'll need more details for how this calculation was done.  Using Query Builder? A program with DATA step?  A log/output example would help.&lt;BR /&gt;
&lt;BR /&gt;
EG doesn't perform calculations itself, usually.  All of the computations are done within SAS and driven by SAS programs, either written by users or generated in a UI like the Query Builder.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Wed, 27 Oct 2010 17:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23455#M3628</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-10-27T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23456#M3629</link>
      <description>Louise,&lt;BR /&gt;
&lt;BR /&gt;
I'd suggest that you read this article and see if it answers your question&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
At the heart of the problem is that you are thinking in base-10 and computers work in base-2, so most things are approximations.  Integers can be represented exactly, but decimal numbers cannot.  Therefore&lt;BR /&gt;
X=0;&lt;BR /&gt;
is not the same as&lt;BR /&gt;
X=0.0;</description>
      <pubDate>Thu, 28 Oct 2010 02:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23456#M3629</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-10-28T02:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23457#M3630</link>
      <description>Thank you, Chris. I sent you a separate email. I think it's possible that it's a format issue? I tried summarizing the amounts manually in Excel using the values of the tables used as source by the OLAP cube. It appears that there are two items that did not match because of the decimal values, although when rounded off to two decimals they get the same value. The wierd thing though is that none of them matched the RAW VALUE produced in the EG subtotal.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;Excel Manual Summation:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;0.00000&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.00055&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;Query using SAS Base:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;0&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.0008544922&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;EG Subtotal Raw Value:&lt;/U&gt;&lt;BR /&gt;
* The optimized value when the Consolidated amount is summarized will equal to &lt;B&gt;4.43458557128906E-05&lt;/B&gt;.&lt;BR /&gt;
* The original value when the Consolidated amount is summarized will equal to &lt;B&gt;0.000868320465087891&lt;/B&gt;.</description>
      <pubDate>Thu, 28 Oct 2010 08:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23457#M3630</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2010-10-28T08:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23458#M3631</link>
      <description>Thank you, Doc. I'll check on the link you provided and see if that explains the issue.</description>
      <pubDate>Thu, 28 Oct 2010 08:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23458#M3631</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2010-10-28T08:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23459#M3632</link>
      <description>Just FYI for the group...&lt;BR /&gt;
&lt;BR /&gt;
In follow-up e-mail, it turns out this scenario is related to OLAP from within EG.  We're following up within the development group with a more detailed analysis.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Thu, 28 Oct 2010 13:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ratio/m-p/23459#M3632</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-10-28T13:42:23Z</dc:date>
    </item>
  </channel>
</rss>

