<?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: Percent Calculation using Max Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43570#M769343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max Function use in Script - And Group by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use value in the front Expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 10:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-01T10:34:57Z</dc:date>
    <item>
      <title>Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43567#M769340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Straight Table which is having calculation like below:&lt;/P&gt;&lt;P&gt;Sum(UnitsSold)/max(Forecast).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204110_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;In the above example the calculation should be 715/252 = 2.83.&lt;/P&gt;&lt;P&gt;The same calculation we need to capture in Single field, as we need to use this in Set expression.&lt;/P&gt;&lt;P&gt;The calculated field is capturing data in row level, and summing up. And showing 5.29.&lt;/P&gt;&lt;P&gt;But I need 2.83 should show in the last column and it should repeat for each row.&lt;/P&gt;&lt;P&gt;Could anyone help me do the same.&lt;/P&gt;&lt;P&gt;I am attaching a sample qvw.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43567#M769340</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43568#M769341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;maybe :&lt;/P&gt;&lt;P&gt;Sum(total UnitsSold)/max(total Forecast)&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you omit "total "&amp;nbsp; that sums each line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43568#M769341</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-06-01T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43569#M769342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached app.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43569#M769342</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2018-06-01T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43570#M769343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max Function use in Script - And Group by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use value in the front Expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43570#M769343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43571#M769344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( &lt;STRONG&gt;total&lt;/STRONG&gt; UnitsSold)/Max(&lt;STRONG&gt;total&lt;/STRONG&gt; ForecastQuantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43571#M769344</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-06-01T10:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43572#M769345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you trying to say in script? or in front end.&lt;/P&gt;&lt;P&gt;I have a feild called[UnitsSold/ForecastQuantity].I need to use this only.&lt;/P&gt;&lt;P&gt;because we need to use the same field in another calculation in next chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43572#M769345</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-06-01T10:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43573#M769346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already tried the same. But result is same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43573#M769346</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-06-01T10:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43574#M769347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pratyush,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Instead of creating variable, if we use max(Forecast) in denominator, then also it is working.&lt;/P&gt;&lt;P&gt;But i want to use the field [UnitsSold/ForecastQuantity]. As this would be using in Set expression next chart calculation.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43574#M769347</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-06-01T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43575#M769348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[UnitsSold/ForecastQuantity]&lt;/SPAN&gt; alone, I don't see a logic of calculating back what you are looking for. It (the possibility of solution) would be simple mathematics rather than qlik for understanding what you are trying to get. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43575#M769348</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-06-01T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Percent Calculation using Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43576#M769349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; [UnitsSold/v_n_max_val] in your next chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-Calculation-using-Max-Function/m-p/43576#M769349</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2018-06-01T10:57:14Z</dc:date>
    </item>
  </channel>
</rss>

