<?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: Formula Problem (Set Analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569999#M682244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, like that didn't work... the problem is in the sum formula...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 13:48:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-27T13:48:57Z</dc:date>
    <item>
      <title>Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569994#M682239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Excel file extraction from a financial parts that keeps repeating the same information in many lines in the first columns, and then the last columns it changes. I want to get the total for those first columns, so, I wrote this formula in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Claim #]=PREVIOUS([Claim #]),'0','1') as UNIQUE_FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that, I created this other formula to sum the total approved from the Claims:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;[UNIQUE_FLAG]={1}, [Status Claim] -={Cancelled}&amp;gt;}([Total Approved])*[Rate])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, it seems it is getting always the double (as if it is sum when UNIQUE_FLAG = 1 and UNIQUE_FLAG = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I choose for one single Claim, it becomes very clear that it's doubling the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guys help me out in this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll attach a pic of it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569994#M682239</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569995#M682240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create a calculated dimension&lt;/P&gt;&lt;P&gt;Aggr (Only ({&amp;lt;UNIQUE_FLAG = {1}&amp;nbsp; Claim#), Claim#)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;OBJECT height="0" type="application/gas-events-bb" width="0"&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569995#M682240</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569996#M682241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where should I add that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569996#M682241</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569997#M682242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Properties.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56031_Properties.PNG.png" style="width: 620px; height: 550px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569997#M682242</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569998#M682243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw, sometimes it is working, sometimes is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569998#M682243</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569999#M682244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, like that didn't work... the problem is in the sum formula...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/569999#M682244</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570000#M682245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julio,&lt;/P&gt;&lt;P&gt;Could you please share your application, so that the people can play around with the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570000#M682245</guid>
      <dc:creator>jvishnuram</dc:creator>
      <dc:date>2014-03-27T13:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570001#M682246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I can't &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;, classified information...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just really don't get why it works for some Claims, and for another doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 14:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570001#M682246</guid>
      <dc:creator />
      <dc:date>2014-03-27T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570002#M682247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SUM({&amp;lt;[UNIQUE_FLAG]={0}, [Status Claim] -={Cancelled}&amp;gt;}([Total Approved])*[Rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;behave in a similar fashion?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;Try adding unique flag as a dimension in your chart and see if it splits out the double sum. If it doesn't, then the flag should be working correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;Maybe try using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;count(Claim#) as expression or count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[UNIQUE_FLAG]&lt;/SPAN&gt;) to see if its counting more than 1 record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;Hope this helps! &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 14:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570002#M682247</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-27T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Problem (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570003#M682248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shouldn´t {Cancelled} be in {'Cancelled'}?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 14:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Problem-Set-Analysis/m-p/570003#M682248</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2014-03-27T14:07:18Z</dc:date>
    </item>
  </channel>
</rss>

