<?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: Set analysis zero values if no selection is made in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247673#M497545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the IF statement that works, but causes the memory issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If(view_date &amp;gt;= vPivot_StartDate,if(view_date&amp;lt;vPivot_Date,if([CAM USA or International]='USA', if(PUB_National_Package='No', if(CAMS_STATE=PUB_State, Usage))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 15:48:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-10-14T15:48:25Z</dc:date>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247664#M497536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a count of all publications, that a customer in the USA has access to, which are located in the customers state, base on a date range. If a customer is selected, then I get the results I need.&amp;nbsp; If a customer is not selected, then the result is zero.&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({=$(=(vPivot_StartDate))&amp;lt;$(=date(vPivot_Date))"},[PUB USA or International]={USA},[CAM USA or International]={USA},[CAMS_State]={"=PUB_State=CAMS_State"}&amp;gt; } DISTINCT(pubid)) I would like to be able to see both a result for all USA customers that use in-state publications as well as the individual customer results as well.&amp;nbsp; Thanks, Jen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247664#M497536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-13T20:00:25Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247665#M497537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({=$(=(vPivot_StartDate))&amp;lt;$(=date(vPivot_Date))"},[PUB USA or International]={USA},[CAM USA or International]={USA},[PUB_State]={"=PUB_State=CAMS_State"}&amp;gt; } DISTINCT(pubid)) I left out the beginning of the statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247665#M497537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-13T20:09:50Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247666#M497538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your syntax may be off in your statement.&amp;nbsp; Do you have an example you could upload?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 23:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247666#M497538</guid>
      <dc:creator />
      <dc:date>2011-10-13T23:31:54Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247667#M497539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the full expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;view_date={"&amp;gt;=$(=(vPivot_StartDate))&amp;lt;$(=date(vPiovot_Date))"),[PUB USA or International] = {USA},[CAM USA or International]={USA}, [PUB_State]={"=PUB_State=CAMS_State"}&amp;gt;} Distinct(pubid))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247667#M497539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247668#M497540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({&amp;lt;view_date={"&amp;gt;=$(=(vPivot_StartDate))","&amp;lt;$(=date(vPiovot_Date))"},[PUB USA or International] = {'USA'},[CAM USA or International] = {'USA'}, [PUB_State]={'PUB_State','CAMS_State'}&amp;gt;} Distinct pubid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give that a try...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247668#M497540</guid>
      <dc:creator />
      <dc:date>2011-10-14T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247669#M497541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you very much for your response, but that resulted in zeros even with a customer selected.&amp;nbsp; I'm thinking I'm missing a $ somewhere because if one customer is selected it works.&amp;nbsp; If I want to see the overall view of all customers the result is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247669#M497541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247670#M497542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your problem is&lt;/P&gt;&lt;P&gt; [PUB_State]={"=PUB_State=CAMS_State"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you select more than one customer, this (PUB_State=CAMS_State will be ambigouus, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a solution right now, maybe an indirect set expression? Or try with a row based conditional expression instead using advanced aggregation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247670#M497542</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-14T15:28:23Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247671#M497543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're right.&amp;nbsp; Initial, I had this calculated with an IF statement, which worked, but caused memory issues.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to respond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247671#M497543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247672#M497544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample I could take a look at?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247672#M497544</guid>
      <dc:creator />
      <dc:date>2011-10-14T15:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247673#M497545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the IF statement that works, but causes the memory issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If(view_date &amp;gt;= vPivot_StartDate,if(view_date&amp;lt;vPivot_Date,if([CAM USA or International]='USA', if(PUB_National_Package='No', if(CAMS_STATE=PUB_State, Usage))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247673#M497545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T15:48:25Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247674#M497546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({1&amp;lt;view_date = {"&amp;gt;= $(=vPivot_StartDate)"}, view_date = {"&amp;lt; $(=vPivot_Date)"}, [CAM USA or International] = {'USA'}, [PUB USA or International] = {'USA'}, [PUB_State] = {'CAMS_State'}&amp;gt;}&amp;nbsp; DISTINCT pubid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give that a try for all customers.&amp;nbsp; Can you upload your qlikview document?&amp;nbsp; Or part of it?&amp;nbsp; If I could see your data and where you're trying to show these values maybe I'd be more help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247674#M497546</guid>
      <dc:creator />
      <dc:date>2011-10-14T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247675#M497547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you could combine the set analysis with the if&amp;nbsp; clause, use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;view_date={"&amp;gt;=$(=(vPivot_StartDate))&amp;lt;$(=date(vPiovot_Date))"),[PUB USA or International] = {USA},[CAM USA or International]={USA} &amp;gt;} if(CAMS_STATE=PUB_State, Usage,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 17:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247675#M497547</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-14T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247676#M497548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your suggestions, but I'm still getting the same results.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I could upload the qlikview document would be to remove the data, because of the information within the document.&amp;nbsp; I'm not sure seeing the document without the data would help solve the issue though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I truely appreciate the help, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 17:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247676#M497548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Set analysis zero values if no selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247677#M497549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yould could scramble some fields, e.g. personal information, ( go to Document properties -&amp;gt; Scrambling), but I don't want to talk you into something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 17:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-zero-values-if-no-selection-is-made/m-p/247677#M497549</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-14T17:57:19Z</dc:date>
    </item>
  </channel>
</rss>

