<?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: Using the 1 in set analysis but allowing certain selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498576#M691213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get a result at least when selecting in Region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't select a region, there might be an issue, right, because all regions will be excluded, so you should see zero as result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1} $(=if(GetSelectedCount( Region ), ', Region = {'&amp;amp; GetFieldSelections(Region) &amp;amp;'}','')) &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dollar sign expansion should evaluate your current selection in Region and - if no selection is made, just return an empty string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if a selection is made, eg. North and South, it should return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1}, Region = {North, South} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your regions look more complicated (i.e. Region values are not just single words), you may need to add quoting, which makes the dollar sign expansion a little more complex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 10:22:20 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-10-01T10:22:20Z</dc:date>
    <item>
      <title>Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498567#M691201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any know a way in set analysis that allows you to use the 1 identifier, but also allow user selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate Sales over the full set where the Red flag = 1. I then want users to be able to select a region and this to be included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({&amp;lt;1{RedFlag={1},Region={$}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when a user selects a region this is included in the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&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;&lt;P&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;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498567#M691201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T09:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498568#M691202</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, for your scenerio, this give solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM({&amp;lt;RedFlag={1}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498568#M691202</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-10-01T09:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498569#M691203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM({&amp;lt;1{RedFlag={1},Region={$(=GetFieldSelections(Region,','))}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498569#M691203</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-01T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498570#M691204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;RedFlag={1},Field1=, Field2=, Field3=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here selection in the field Field1, Field2, Field3 would not be taken into consideration but for the field &lt;STRONG&gt;Region&lt;/STRONG&gt;&amp;nbsp; would be, beacuse that is not included in the set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498570#M691204</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-01T09:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498571#M691205</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;This solution is not using the 1 to select over the whole set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498571#M691205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498572#M691206</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;I can't see what you're saying, but it is not returning a result.&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498572#M691206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498573#M691208</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;I can't see what you're saying, but i have lots of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498573#M691208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498574#M691210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my knowledge, Set analysis dont allow 1 and selection both together. Obviously you can ignore user selection as per tresesco suggested...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;RedFlag = {1}, Month = , Year = ,WeekNo = , Qtr =&amp;nbsp; &amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here any selection by user in Month, Year, WeekNo and Qtr will not affect your value but Region selection will give you SUM of SALES for that particular region with RedFlag = 1...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498574#M691210</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-01T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498575#M691212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have many fields, Stefan's solution should work with a little bit of correction, please try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt;RedFlag={1},Region={$(=GetFieldSelections(Region,','))}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498575#M691212</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-01T10:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498576#M691213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get a result at least when selecting in Region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't select a region, there might be an issue, right, because all regions will be excluded, so you should see zero as result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1} $(=if(GetSelectedCount( Region ), ', Region = {'&amp;amp; GetFieldSelections(Region) &amp;amp;'}','')) &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dollar sign expansion should evaluate your current selection in Region and - if no selection is made, just return an empty string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if a selection is made, eg. North and South, it should return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;RedFlag={1}, Region = {North, South} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your regions look more complicated (i.e. Region values are not just single words), you may need to add quoting, which makes the dollar sign expansion a little more complex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498576#M691213</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-01T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498577#M691214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt;RedFlag={1}, Region=P(Region)&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 10:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498577#M691214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T10:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498578#M691215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I can't see what you're saying, but i have lots of fields.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can let QV do the work to create a list of all fields to clear, have a look into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 11:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498578#M691215</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-01T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498579#M691216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was actually using your other suggestion that you made on another post which involved using a variable and GetFieldSelections &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 12:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498579#M691216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T12:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 1 in set analysis but allowing certain selections</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498580#M691217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood..&lt;BR /&gt;My suggestion above makes sense only if you actually select a Region.&amp;nbsp; Later I thought that it is better to use a variable.&amp;nbsp; Didn't rememebr I'd answered a similar question before... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 12:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-1-in-set-analysis-but-allowing-certain-selections/m-p/498580#M691217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-01T12:52:02Z</dc:date>
    </item>
  </channel>
</rss>

