<?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: calculate expression from another expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589830#M443468</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I shared a sample data in attachments&amp;nbsp;&lt;/P&gt;&lt;P&gt;As example data&lt;BR /&gt;in Overview pivot have Large Claim&lt;BR /&gt;and High claimant&lt;BR /&gt;in year 2019 (report Year) we have Large Claim = 777,594 it is true because 777,594 &amp;gt; 700,000(Large Claim)&lt;BR /&gt;but High Claimant it is wrong because in 2019 we have 777,594 and in 2018(prior year) we have 1,633,221 but in High Claimant Overview pivot we have 11,483 it is wrong must show 1,633,221 on displays.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 03:38:06 GMT</pubDate>
    <dc:creator>narumonK</dc:creator>
    <dc:date>2019-06-10T03:38:06Z</dc:date>
    <item>
      <title>calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589342#M443433</link>
      <description>&lt;P&gt;hi everyone&lt;/P&gt;&lt;P&gt;I want to calculate&amp;nbsp; expression&amp;nbsp; from expression&amp;nbsp; as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="expression.png" style="width: 698px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13357i90013176F2AA1BEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="expression.png" alt="expression.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to calculate var(%) and position var(%) is side by side 2018 as below&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="expression2.PNG" style="width: 450px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13356i8A51F155E9368214/image-size/large?v=v2&amp;amp;px=999" role="button" title="expression2.PNG" alt="expression2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help!!&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 06:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589342#M443433</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-07T06:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589347#M443434</link>
      <description>&lt;P&gt;Hi! You can reference expression columns using "Column" function. Said so, try yhe following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(column(1)-column(2))/Column(2)&lt;/LI-CODE&gt;&lt;P&gt;Thus I calculate that % using column position (note that if you change the order of the expressions you will have to rewrite this one)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 06:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589347#M443434</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-06-07T06:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589352#M443435</link>
      <description>that means the position expression is next expression4 right ? i want to display the expression side by side year 2018</description>
      <pubDate>Fri, 07 Jun 2019 06:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589352#M443435</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-07T06:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589361#M443436</link>
      <description>&lt;P&gt;Sorry, I did not understand your issue.&lt;/P&gt;&lt;P&gt;See the attached file. Building a chart as you need requires some steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create an island table with as many "Codes" as dimensions you'll need. In the example there are two codes: year and variation&lt;/LI&gt;&lt;LI&gt;Use a calculated dimension like&amp;nbsp;&lt;EM&gt;=Pick(Code,Year,'Variation')&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Create expressions similarly:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Pick(Code,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Value), //Expression for year columns&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Sum({&amp;lt;Year = {2018}&amp;gt;} Value)-Sum({&amp;lt;Year = {2019}&amp;gt;} Value) //expression for "variation" column&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Don't forget to sort the dimension by "Code". Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solve.png" style="width: 491px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13361iF9D524F24B8AFDE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="solve.png" alt="solve.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps! Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 07:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589361#M443436</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-06-07T07:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589371#M443437</link>
      <description>&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;But i have many year when i selected 2019 the display must show 2018 and 2019&amp;nbsp; then&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i selected 2018 the display must show 2018 and 2017&amp;nbsp;&lt;/P&gt;&lt;P&gt;as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="year.PNG" style="width: 769px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13363i03F66651AF95DEB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="year.PNG" alt="year.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="year2.PNG" style="width: 864px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13364iEFE49F3E9978BB1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="year2.PNG" alt="year2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please recommend&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 07:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589371#M443437</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-07T07:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589379#M443438</link>
      <description>&lt;P&gt;Yes, I supposed so but I made a functional example, I left the details for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I usually create a variable &lt;EM&gt;vMaxYear &lt;/EM&gt;with this content:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;=Max(Year)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The expression you need will look something similar to:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pick(Code,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Value), //Expression for year columns&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Sum({&amp;lt;Year = {"$(=vMaxYear-1)"}&amp;gt;} Value)-Sum({&amp;lt;Year = {$(vMaxYear)}&amp;gt;} Value) //expression for "variation" column&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But, as I said, with the info I have I can not go into the details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jaime.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 07:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589379#M443438</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-06-07T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589410#M443439</link>
      <description>&lt;P&gt;That good!!&lt;/P&gt;&lt;P&gt;Thank.&lt;/P&gt;&lt;P&gt;I have any&amp;nbsp;question&amp;nbsp;&lt;/P&gt;&lt;P&gt;VLclaim = 300000,&lt;/P&gt;&lt;P&gt;Vvalues =&amp;nbsp;&amp;nbsp;'Prior Year','Report Year','Var(%)'&lt;/P&gt;&lt;P&gt;VpriorYY = Prior Year&lt;/P&gt;&lt;P&gt;VreportYY = Report Year&lt;/P&gt;&lt;P&gt;1. when i created expression for sum(paid)&amp;nbsp; by&amp;nbsp; ID have value &amp;gt;= 300000&amp;nbsp;&lt;/P&gt;&lt;P&gt;pick(match(ValueList($(Vvalues)),$(Vvalues)),&lt;BR /&gt;sum({$&amp;lt;T_ID_CLAIM_NO={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;T_ID_CLAIM_NO={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VreportYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)&lt;/P&gt;&lt;P&gt;,&lt;BR /&gt;(sum({$&amp;lt;T_ID_CLAIM_NO={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VreportYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)-&lt;BR /&gt;sum({$&amp;lt;T_ID_CLAIM_NO={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID))/&lt;BR /&gt;sum({$&amp;lt;T_ID_CLAIM_NO={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The result for report year is true but the result for prior year is wrong ,I don't know something&amp;nbsp; wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="values.PNG" style="width: 935px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13375iE4CA69D07A88FF71/image-size/large?v=v2&amp;amp;px=999" role="button" title="values.PNG" alt="values.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589410#M443439</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-07T08:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589803#M443464</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I can not help you looking into an expression of completely unknown data. Please, share a sample so I can test myself!&lt;/P&gt;&lt;P&gt;On the other hand, if the original issue is solved please mark the answer as solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 16:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589803#M443464</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-06-09T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589830#M443468</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I shared a sample data in attachments&amp;nbsp;&lt;/P&gt;&lt;P&gt;As example data&lt;BR /&gt;in Overview pivot have Large Claim&lt;BR /&gt;and High claimant&lt;BR /&gt;in year 2019 (report Year) we have Large Claim = 777,594 it is true because 777,594 &amp;gt; 700,000(Large Claim)&lt;BR /&gt;but High Claimant it is wrong because in 2019 we have 777,594 and in 2018(prior year) we have 1,633,221 but in High Claimant Overview pivot we have 11,483 it is wrong must show 1,633,221 on displays.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 03:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589830#M443468</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-10T03:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589860#M443471</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I checked your "High Claimant" expression. For prior year you used&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({$&amp;lt;T_ID_CERT_MEMBER={"=sum(T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;where you only sum for those "T_ID_CERT_MEMBER" which sum of "T_F1_AMOUNT_CLAIM_PAID" is greater than&amp;nbsp;VLclaim &lt;U&gt;&lt;STRONG&gt;with current selections&lt;/STRONG&gt;&lt;/U&gt;. I think that the following expression works:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({$&amp;lt;T_ID_CERT_MEMBER={"=sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}&lt;/FONT&gt;T_F1_AMOUNT_CLAIM_PAID)&amp;gt;=$(VLclaim)"},T_D0_CONSULTTING_YEAR={$(=VpriorYY)}&amp;gt;}T_F1_AMOUNT_CLAIM_PAID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 06:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589860#M443471</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-06-10T06:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: calculate expression from another expression</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589864#M443473</link>
      <description>&lt;P&gt;excellent!!!&lt;BR /&gt;many thank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 06:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-expression-from-another-expression/m-p/1589864#M443473</guid>
      <dc:creator>narumonK</dc:creator>
      <dc:date>2019-06-10T06:47:51Z</dc:date>
    </item>
  </channel>
</rss>

