<?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 calculation from two table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47327#M3225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;My both table are having daily level granular data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get this column for each&amp;nbsp; date&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If user select a for ex; 15th May 2018 then formula is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Margin % = &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(MTDsales value at 15th May 2018) / Budget Amount at 01st may 2018)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;How this can be &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;achieve&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; using script.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 10:24:28 GMT</pubDate>
    <dc:creator>prashantsanchet</dc:creator>
    <dc:date>2018-05-17T10:24:28Z</dc:date>
    <item>
      <title>Ratio calculation from two table</title>
      <link>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47325#M3223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 :&amp;nbsp;&amp;nbsp; :&lt;SPAN style="font-size: 10pt;"&gt;Date,Country,Region,State,DailySales,MTDSales,QTDSales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Table 2: Date,Country,BudgetAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want t create a on more fired which will be Margin% = (MTDsales value at selected Business Date) /&amp;nbsp; (Budget Amount of Monthstart date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we can calculate this in Load Script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If user select a for ex; 15th May 2018 then Margin % = &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(MTDsales value at 15th May 2018) / 9Budget Amount at 01st may 2018.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 08:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47325#M3223</guid>
      <dc:creator>prashantsanchet</dc:creator>
      <dc:date>2018-05-17T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio calculation from two table</title>
      <link>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47326#M3224</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;if your Budget table is Budgeted per month, so in your chart you will need to use a Month field to be able to compare Sales Vs Budget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do the calculation on the script, yo should Join the tables to be able to create the Margin% field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also create the calculation on the chart using: &lt;STRONG&gt;sum(Sales)/sum(Budget)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 09:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47326#M3224</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-05-17T09:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio calculation from two table</title>
      <link>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47327#M3225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;My both table are having daily level granular data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get this column for each&amp;nbsp; date&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If user select a for ex; 15th May 2018 then formula is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Margin % = &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(MTDsales value at 15th May 2018) / Budget Amount at 01st may 2018)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;How this can be &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;achieve&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; using script.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 10:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47327#M3225</guid>
      <dc:creator>prashantsanchet</dc:creator>
      <dc:date>2018-05-17T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio calculation from two table</title>
      <link>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47328#M3226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like what i said above, on the script you should have the sale field and the budget field on the same table, otherwise you will need to join the tables to be able to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Sales_field/budget field as margin%&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use Sum(margin%) on your charts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 10:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ratio-calculation-from-two-table/m-p/47328#M3226</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-05-17T10:41:25Z</dc:date>
    </item>
  </channel>
</rss>

