<?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: Re: Set analysis error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539743#M201691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Finally I could view all values but for now its impossible to delete those rows. Look at the picture I have all correct values but I don´t wnat to see that I marked in red.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2013 18:41:34 GMT</pubDate>
    <dc:creator>pgalvezt</dc:creator>
    <dc:date>2013-11-18T18:41:34Z</dc:date>
    <item>
      <title>Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539739#M201687</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;Im trying to filter some fields. have the next formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Count_desc='Sales Account',Sum({&amp;lt;subAccount={'L010''}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;Sum(Amount))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;If(cuenta_desc='Sales Account',Sum({&amp;lt;subAccount={'Blank'}&amp;gt;}Amount)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView shows the expected result, But doesn't throw all the information. Like =Sum(Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an image as example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 16:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539739#M201687</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2013-11-18T16:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539740#M201688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your second condition is not fulfilled, NULL will be returned as operand to the addition, which returns NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's more safe to either write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count_desc='Sales Account',Sum({&amp;lt;subAccount={'L010''}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;Sum(Amount))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;If(cuenta_desc='Sales Account',Sum({&amp;lt;subAccount={'Blank'}&amp;gt;}Amount)&lt;STRONG&gt;,0&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangesum(&lt;/P&gt;&lt;P&gt;If(Count_desc='Sales Account',Sum({&amp;lt;subAccount={'L010''}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;Sum(Amount)),&lt;/P&gt;&lt;P&gt;If(cuenta_desc='Sales Account',Sum({&amp;lt;subAccount={'Blank'}&amp;gt;}Amount)) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, it's a common error to include the aggregation inside a condition, while you really want to include the condition in the aggregation, so if Count_desc is not a dimension, your expression will probably return an ambiguous answer in the conditional branch, thus failing your expectation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 16:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539740#M201688</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-18T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539741#M201689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, just one more thing. I tried to show just one row.&lt;/P&gt;&lt;P&gt;=If(cuenta_group_desc='Total Costo de Ventas',0) &lt;/P&gt;&lt;P&gt;but I couldn´t 116.843.287 is the value that I want to show the rest doesn't care.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539741#M201689</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2013-11-18T18:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539742#M201690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;=If(cuenta_group_desc='Total Costo de Ventas',0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is always returning either 0 or NULL, won't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should rethink about conditions used in an aggregation:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/08/06/it-s-all-aggregations"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/08/06/it-s-all-aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then maybe you come to something like&lt;/P&gt;&lt;P&gt;=sum( if(cuenta_group_desc = 'Total Costo de Ventas', Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or using set analysis&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;cuenta_group_desc = {'Total Costo de Ventas'}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539742#M201690</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-18T18:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539743#M201691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Finally I could view all values but for now its impossible to delete those rows. Look at the picture I have all correct values but I don´t wnat to see that I marked in red.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539743#M201691</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2013-11-18T18:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539744#M201692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried filtering your Cuenta dimension values, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Cuenta -= {'Costo de Muestras','Costo de Garantias'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[add more values to the field modifier list as needed]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539744#M201692</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-18T18:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539745#M201693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can´t because I have values for each month. Let me explain you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for february I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(Count_desc='Sales Account',Sum({&amp;lt;subAccount={'L010''}&amp;gt;}Amount2),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Amount))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(cuenta_desc='Sales Account',Sum({&amp;lt;subAccount={'Blank'}&amp;gt;}Amount2)&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,0&lt;/STRONG&gt;)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For March&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(Count_desc='Sales Account',Sum({&amp;lt;subAccount={'L010''}&amp;gt;}Amount3),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Amount))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(cuenta_desc='Sales Account',Sum({&amp;lt;subAccount={'Blank'}&amp;gt;}Amount3)&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,0&lt;/STRONG&gt;)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and so on Amount 4 Amount 5.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So I think I can´t put Just Amount into my dimmension. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539745#M201693</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2013-11-18T19:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539746#M201694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway thank you very much for your help I will keep going to try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-error/m-p/539746#M201694</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2013-11-18T19:09:31Z</dc:date>
    </item>
  </channel>
</rss>

