<?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 comnine 2 different expression into 1 using if ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-comnine-2-different-expression-into-1-using-if/m-p/1090506#M641508</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;&lt;/P&gt;&lt;P&gt;I have expression for table 1 as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;year = {"$(=Max(year)-1)"},month={"&amp;lt;=$(=month)"},$(ColumnDim51)={$(ColumnDim51)}&amp;gt;}Amount*1)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i Press on Button STep 1 , table 1 will display 1871.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have expression for table 2 as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-1)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}$(ColumnDim51)/$(Columndim89)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i Press on Button STep 2 , table 2 will display 1877.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know how to combine above 2 expression into 1 ? So that when i press button step 1 it will display 1871 and when i press step 2 it will display 1877 in table 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My imagine expression for table 3 is below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=IF([[Pls select 66 Dim]] = 'rEVENUE', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;year = {"$(=Max(year)-1)"},month={"&amp;lt;=$(=month)"},$(ColumnDim51)={$(ColumnDim51)}&amp;gt;}Amount*1)/1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF([[Pls select 66 Dim]] = 'sales', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;year = {$(=max(year)-1)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}$(ColumnDim51)/$(Columndim89)/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But cannot work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next post i will send my QV Doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 12:32:55 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-02-10T12:32:55Z</dc:date>
    <item>
      <title>How to comnine 2 different expression into 1 using if ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-comnine-2-different-expression-into-1-using-if/m-p/1090506#M641508</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;&lt;/P&gt;&lt;P&gt;I have expression for table 1 as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;year = {"$(=Max(year)-1)"},month={"&amp;lt;=$(=month)"},$(ColumnDim51)={$(ColumnDim51)}&amp;gt;}Amount*1)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i Press on Button STep 1 , table 1 will display 1871.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have expression for table 2 as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year)-1)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}$(ColumnDim51)/$(Columndim89)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i Press on Button STep 2 , table 2 will display 1877.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know how to combine above 2 expression into 1 ? So that when i press button step 1 it will display 1871 and when i press step 2 it will display 1877 in table 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My imagine expression for table 3 is below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=IF([[Pls select 66 Dim]] = 'rEVENUE', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;year = {"$(=Max(year)-1)"},month={"&amp;lt;=$(=month)"},$(ColumnDim51)={$(ColumnDim51)}&amp;gt;}Amount*1)/1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF([[Pls select 66 Dim]] = 'sales', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;year = {$(=max(year)-1)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}$(ColumnDim51)/$(Columndim89)/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But cannot work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next post i will send my QV Doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 12:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-comnine-2-different-expression-into-1-using-if/m-p/1090506#M641508</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-10T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to comnine 2 different expression into 1 using if ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-comnine-2-different-expression-into-1-using-if/m-p/1090507#M641509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Already settle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 00:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-comnine-2-different-expression-into-1-using-if/m-p/1090507#M641509</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-20T00:19:48Z</dc:date>
    </item>
  </channel>
</rss>

