<?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 set analysis with sum not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417778#M155379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table with values ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="546"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="94"&gt;Patient Visit #&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="95"&gt;Gross Amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="115"&gt;Discount Amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="83"&gt;Charge year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="95"&gt;Charge Month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="64"&gt;Hospital&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;90&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;AMC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I craeted straight table with set analysis to calculate the Net amount based on the charge date and charge year and the hospital , as i have many hospital&lt;/P&gt;&lt;P&gt;i am trying to show the revenue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my set analysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hospital&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AMC'},Charge_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2012'},Charge_Month={'02'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gross_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Discount_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it gave me wrong result = 126&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct result is 70&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 06:12:57 GMT</pubDate>
    <dc:creator>zturaiki</dc:creator>
    <dc:date>2013-05-29T06:12:57Z</dc:date>
    <item>
      <title>set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417778#M155379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table with values ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="546"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="94"&gt;Patient Visit #&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="95"&gt;Gross Amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="115"&gt;Discount Amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="83"&gt;Charge year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="95"&gt;Charge Month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="64"&gt;Hospital&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;90&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;AMC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I craeted straight table with set analysis to calculate the Net amount based on the charge date and charge year and the hospital , as i have many hospital&lt;/P&gt;&lt;P&gt;i am trying to show the revenue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my set analysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hospital&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AMC'},Charge_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2012'},Charge_Month={'02'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gross_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Discount_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it gave me wrong result = 126&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct result is 70&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417778#M155379</guid>
      <dc:creator>zturaiki</dc:creator>
      <dc:date>2013-05-29T06:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417779#M155380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you please attach the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yusuf &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417779#M155380</guid>
      <dc:creator />
      <dc:date>2013-05-29T06:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417780#M155381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;(distinct {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;Charge_Year&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;={2012},Hospital&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;={'AMC'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;Charge_Month={2}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;Gross_Amount &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;Discount_Amount&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417780#M155381</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-29T06:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417781#M155382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hospital&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='AMC' and&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Charge_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=2012 and &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 8pt;"&gt;Charge_Month=2&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gross_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Discount_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&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;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hospital&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AMC'},Charge_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2012'},Charge_Month={'2'}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gross_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Discount_Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417781#M155382</guid>
      <dc:creator />
      <dc:date>2013-05-29T06:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417782#M155383</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;Field name is case sensitive. First check your field name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;EX: Charge year = [Charge year]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Don't use Charge_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Ex; Charge_Year = Charge_Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;This is right one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below syntex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Hospital={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"AMC"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},Charge_Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2012"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},Charge_Month={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Gross_Amount-Discount_Amount) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417782#M155383</guid>
      <dc:creator>kumarnatarajan</dc:creator>
      <dc:date>2013-05-29T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417783#M155384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached Zip folder - QVD table + Qlikview doctument &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if i use simple calculation sum(Gross amount - discount amount) , it will give me wrong result ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 08:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417783#M155384</guid>
      <dc:creator>zturaiki</dc:creator>
      <dc:date>2013-05-29T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417784#M155385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The value showing in the Chart is Correct .&lt;/P&gt;&lt;P&gt; I think you are verifying the values using Table Box .&lt;/P&gt;&lt;P&gt;But Table Box wont show the Duplicate records as 2 rows it shows as only 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Qvd the Rows are Duplicated so thats why you are getting different value .&lt;/P&gt;&lt;P&gt;There are 2 rows of same value .&lt;/P&gt;&lt;P&gt;Please verify .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yusuf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417784#M155385</guid>
      <dc:creator />
      <dc:date>2013-05-29T09:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417785#M155386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ,, there is dublicated value ,, You are correct ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417785#M155386</guid>
      <dc:creator>zturaiki</dc:creator>
      <dc:date>2013-05-29T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with sum not work</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417786#M155387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ,, there is dublicated value ,, You are correct ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-sum-not-work/m-p/417786#M155387</guid>
      <dc:creator>zturaiki</dc:creator>
      <dc:date>2013-05-29T09:27:44Z</dc:date>
    </item>
  </channel>
</rss>

