<?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: Pivot Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643682#M235837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;I_MONTH ={"$(=$(=Only([1_MONTH]))&lt;SPAN style="color: #ff0000;"&gt;-1)&lt;/SPAN&gt;"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 06:57:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-09T06:57:07Z</dc:date>
    <item>
      <title>Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643679#M235834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my pivot Table the following expression is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;I_MONTH = {"$(=Only(I_MONTH))"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the expression given below returns 0 value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;I_MONTH ={"$(=Only([1_MONTH])&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;)"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some pls tell me what is wrong with 2nd expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 15:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643679#M235834</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-06-08T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643680#M235835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe this difference is a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only&lt;STRONG&gt;(I&lt;/STRONG&gt;_MONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only&lt;STRONG&gt;([1&lt;/STRONG&gt;_MONTH])&lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 15:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643680#M235835</guid>
      <dc:creator />
      <dc:date>2014-06-08T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643681#M235836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the below expression as 2nd expression and see if this works, I have added () to Only(1_MONTH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;I_MONTH ={"$(=(Only([1_MONTH]))&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;)"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 18:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643681#M235836</guid>
      <dc:creator />
      <dc:date>2014-06-08T18:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643682#M235837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;I_MONTH ={"$(=$(=Only([1_MONTH]))&lt;SPAN style="color: #ff0000;"&gt;-1)&lt;/SPAN&gt;"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 06:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643682#M235837</guid>
      <dc:creator />
      <dc:date>2014-06-09T06:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643683#M235838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two possibilities:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;typo - [&lt;STRONG&gt;1_&lt;/STRONG&gt;MONTH] or [I_Month]&lt;/LI&gt;&lt;LI&gt;If your [1_Month] field is not numeric 'only([I_MONTH])-1' would not work for obvious reason.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 07:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643683#M235838</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-09T07:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643684#M235839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I_MONTH&lt;/SPAN&gt; values format? Is it 1,2,3,4,etc.&amp;nbsp; If it is numeric then try below expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;=SUM({&amp;lt;I_MONTH ={"$(=Only([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I_MONTH&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;-1&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)"},I_DAY = {"&amp;gt;25"}&amp;gt;} [PREMIUM])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are using 1_MONTH (numeric month) please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 07:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Expression/m-p/643684#M235839</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-09T07:01:26Z</dc:date>
    </item>
  </channel>
</rss>

