<?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: Can anyone help me simplify the calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673251#M1072547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could build the expression in the script using a loop and a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFormula = (Grade1/Grade1standard);&lt;/P&gt;&lt;P&gt;For i = 2 to 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vFormula = $(vFormula) &amp;amp; ' + Grade' &amp;amp; i &amp;amp; '/Grade' &amp;amp; i &amp;amp; 'standard)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use vFormula in the script. You may have to be careful with apostrophe's and use chr(39) etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 11:19:47 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2014-08-13T11:19:47Z</dc:date>
    <item>
      <title>Can anyone help me simplify the calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673250#M1072546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a calc like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=( Grade1/Garde 1 std)&amp;nbsp; + (Grade2/Garde2standard)+...............................+ (Grade10/Garde10standard)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For today its 10 what if tomorrow there are many standards. Can you help me with the best solution. And this is the expression calc you can either advise me in data modelling (Scripting)wise or else in expression wise as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;Jagan Mohan&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/23043"&gt;Ashfaq Mohammed&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/2226"&gt;John Witherspoon&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673250#M1072546</guid>
      <dc:creator />
      <dc:date>2014-08-13T11:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me simplify the calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673251#M1072547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could build the expression in the script using a loop and a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFormula = (Grade1/Grade1standard);&lt;/P&gt;&lt;P&gt;For i = 2 to 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vFormula = $(vFormula) &amp;amp; ' + Grade' &amp;amp; i &amp;amp; '/Grade' &amp;amp; i &amp;amp; 'standard)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use vFormula in the script. You may have to be careful with apostrophe's and use chr(39) etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673251#M1072547</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-08-13T11:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me simplify the calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673252#M1072548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ps. You can of course replace the 10 with a count of the possible options to make it dynamic...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673252#M1072548</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-08-13T11:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me simplify the calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673253#M1072549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But for static this is fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I have many calcs and selections considered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt; Count(&amp;lt;Type = super,order='check'Grade1&amp;gt;/(Garde 1 std)&amp;nbsp; + &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Count(&amp;lt;Type = super,order='check'&amp;gt;Grade2)/(Garde 2 std) . I think its better to write a big calc just heard from business team there is only 10 standards always.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just thinking...........................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-simplify-the-calculation/m-p/673253#M1072549</guid>
      <dc:creator />
      <dc:date>2014-08-13T11:24:18Z</dc:date>
    </item>
  </channel>
</rss>

