<?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 How to add one more var ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009634#M14945</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 learn from below post :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/179371"&gt;QS How to combine 2 Revenue and Net Profit Table into 1 Table ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for above is using script :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2),Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it look very simple&amp;nbsp; because i can convert the above script to below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2)&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order for me to add one more variable , for example cOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 I go to the variable Add , Value = 3 Label = cOST&lt;/P&gt;&lt;P&gt;Step 2 I modify the the above script to below :-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Pick(Match($(Var),1,2)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;cOST={"cOST"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That it , and i am confident it will work fine , But to my surprise it never work. and i don't know why ? May be Andy will know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 01:15:01 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2015-09-10T01:15:01Z</dc:date>
    <item>
      <title>How to add one more var ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009634#M14945</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 learn from below post :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/179371"&gt;QS How to combine 2 Revenue and Net Profit Table into 1 Table ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for above is using script :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2),Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it look very simple&amp;nbsp; because i can convert the above script to below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2)&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order for me to add one more variable , for example cOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 I go to the variable Add , Value = 3 Label = cOST&lt;/P&gt;&lt;P&gt;Step 2 I modify the the above script to below :-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Pick(Match($(Var),1,2)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,Sum({&amp;lt;rEVENUE={"rEVENUE"}&amp;gt;}Amount)/1000&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,Sum({&amp;lt;nET_PROFIT={"nET_PROFIT"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;,Sum({&amp;lt;cOST={"cOST"}&amp;gt;}Amount)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That it , and i am confident it will work fine , But to my surprise it never work. and i don't know why ? May be Andy will know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 01:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009634#M14945</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-09-10T01:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add one more var ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009635#M14946</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 forgotten to memtioned that i also need to change :-&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2,),&lt;/P&gt;&lt;P&gt;To :-&lt;/P&gt;&lt;P&gt;Pick(Match($(Var),1,2,3),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which i did , but still not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 01:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009635#M14946</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-09-10T01:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add one more var ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009636#M14947</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;Enclosed my QVF file , Hope some one can advise me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 06:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-add-one-more-var/m-p/1009636#M14947</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-09-11T06:32:40Z</dc:date>
    </item>
  </channel>
</rss>

