<?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: Experssion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43881#M7405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt;&lt;/SPAN&gt; PREMIUM) - Sum(&lt;STRONG style="color: #ff0000;"&gt;TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; &lt;/STRONG&gt;{&amp;lt;YEAR=&amp;gt;}NET_CLAIM) &amp;lt; 0, Sum(PREMIUM))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Mar 2018 11:58:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-18T11:58:27Z</dc:date>
    <item>
      <title>Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43877#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QV dov I have following Pivot Table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196620_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In the avove example there is a loss in year 2016. I want to show all the policies if total Gross Profit for a particular a policy is negative figure. That is exactly what I have shown above. But if I apply a condition to select loss policies I see records for 2015 and 2017 not showing in my pivot table. Then my epressiin will be&lt;/P&gt;&lt;P&gt;if((sum(PREMIUM)-SUM({&amp;lt;YEAR=&amp;gt;}NET_CLAIM))&amp;lt;0,sum(PREMIUM)). &lt;/P&gt;&lt;P&gt;So what I want is to show records for all 3 years if the Total GrossProft figure is negative.&amp;nbsp; Pls help me modify my expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 04:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43877#M7401</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2018-03-17T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43878#M7402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample data please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 06:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43878#M7402</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-17T06:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43879#M7403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I am confused, what exactly you want to do here?&lt;/P&gt;&lt;P&gt;You want to show all three years or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 09:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43879#M7403</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-03-17T09:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43880#M7404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all 3 yaers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 14:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43880#M7404</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2018-03-17T14:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43881#M7405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt;&lt;/SPAN&gt; PREMIUM) - Sum(&lt;STRONG style="color: #ff0000;"&gt;TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; &lt;/STRONG&gt;{&amp;lt;YEAR=&amp;gt;}NET_CLAIM) &amp;lt; 0, Sum(PREMIUM))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 11:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43881#M7405</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-18T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43882#M7406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny .&lt;/P&gt;&lt;P&gt;It works. But if I create&amp;nbsp; varivale with that expression it does not work. My variable is &lt;/P&gt;&lt;P&gt;vGP=&lt;/P&gt;&lt;P&gt;(Sum(TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; PREMIUM) - Sum(TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; {&amp;lt;YEAR=&amp;gt;}CEDED_PREMIUM)+ Sum(TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; {&amp;lt;YEAR=&amp;gt;}CEDED_COMM)&lt;/P&gt;&lt;P&gt;- Sum(TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; {&amp;lt;YEAR=&amp;gt;}COMMISSION) - Sum(TOTAL &amp;lt;POLICY_NO, INSURED&amp;gt; {&amp;lt;YEAR=&amp;gt;}NET_CLAIM))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in my pivot table when I write the follwing expression it does not work. Pls help&lt;/P&gt;&lt;P&gt;if($(vGP)&amp;lt;0,sum(PREMIUM))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 02:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43882#M7406</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2018-03-19T02:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Experssion</title>
      <link>https://community.qlik.com/t5/QlikView/Experssion/m-p/43883#M7407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure... would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 08:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Experssion/m-p/43883#M7407</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-19T08:54:20Z</dc:date>
    </item>
  </channel>
</rss>

