<?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: Calculating Ratio: Script or UI? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45052#M606621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 09:14:54 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2018-05-03T09:14:54Z</dc:date>
    <item>
      <title>Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45047#M606616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show a monthly ratio based on records with a resolution of half an hour.&lt;/P&gt;&lt;P&gt;For each record, the ratio is calculated by ActualAvail/STDAvail.&lt;/P&gt;&lt;P&gt;In a chart I use Average for that metric, based on a period selection (Month, Year..)&lt;/P&gt;&lt;P&gt;I wanted to know whether I should calculate the ratio dynamically in the chart.&lt;/P&gt;&lt;P&gt;If so, what is the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201296" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201296_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 16:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45047#M606616</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-05-02T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45048#M606617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dafnis&lt;/P&gt;&lt;P&gt;Are you asking whether you should use the Ratio directly from your source (looks like Excel?) or calculate the Ratio in your chart?&lt;BR /&gt;If so, then I would say its best to calculate the Ratio in your chart using the data points you have so that it will adjust depending on your dimensions and filter selection. &lt;BR /&gt;If you use the Ratio from Excel, you could end up with incorrect values due the issues of aggregating ratios. Its always best to avoid pulling pre-aggregated data into Qlik, especially when you have the granular data values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;BR /&gt;If I've misunderstood your question, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 03:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45048#M606617</guid>
      <dc:creator>duncanblaine</dc:creator>
      <dc:date>2018-05-03T03:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45049#M606618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is pulled from a database.&lt;/P&gt;&lt;P&gt;So the ratio is calculated in the script.&lt;/P&gt;&lt;P&gt;Since the metrics are to be used in a dashboard, no drill down, it is more convenient to do the aggregation in the script.&lt;/P&gt;&lt;P&gt;I saw a difference of around 0.04% between the 2 methods (in the script or in a chart).&lt;/P&gt;&lt;P&gt;Just want to make sure that it's correct "arithmetically".. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 03:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45049#M606618</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-05-03T03:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45050#M606619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be that you have a number format that is affecting the decimal places, which might cause a different total when exported to Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45050#M606619</guid>
      <dc:creator>duncanblaine</dc:creator>
      <dc:date>2018-05-03T08:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45051#M606620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In answer to your original question: &lt;/P&gt;&lt;P&gt;There should be no difference arithmetically between calculating the Ratio in the UI or in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference I can think of is the way the decimals are rendered in the UI, which is configured on the Number tab in the Object properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45051#M606620</guid>
      <dc:creator>duncanblaine</dc:creator>
      <dc:date>2018-05-03T08:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Ratio: Script or UI?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45052#M606621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 09:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Ratio-Script-or-UI/m-p/45052#M606621</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-05-03T09:14:54Z</dc:date>
    </item>
  </channel>
</rss>

