<?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 - Setting a field equal to another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449459#M167725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set expression is evaluated once per chart, not considering your dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either stick with your first version sum(if(...)) or try maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( Severity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {1} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {0} &amp;gt;} _ConsumerCounter)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 16:41:49 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-01-23T16:41:49Z</dc:date>
    <item>
      <title>Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449458#M167724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to set a field equal to another field using set analysis AND have it apply that logic over a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dimension called Severity with values of 0 and 1. So my graph is split into a 0 and a 1; I want to show the number of consumers that are 0 for ADL Bathing and how many are 1 for ADL Bating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If([ADL Bathing] = Severity, _ConsumerCounter)) &lt;/STRONG&gt;using Set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest thing I can come up with is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;ADL Bathing]=P([Severity])&amp;gt;} _ConsumerCounter)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only using the P function (which I dont want to) becuse that's the only way I can get the expression to say OK. The P function is actually just gruoping all consumers with either a 0 or a 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway to set a field equal to another in set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449458#M167724</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449459#M167725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set expression is evaluated once per chart, not considering your dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either stick with your first version sum(if(...)) or try maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( Severity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {1} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {0} &amp;gt;} _ConsumerCounter)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449459#M167725</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-23T16:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449460#M167726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl. This exprssion is working great. Thank you. The only thing is I am trying to expand this to include th eother values. So my Severity is actually 0 through 3 and when I try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( Severity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {3} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {2} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {1} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {0} &amp;gt;} _ConsumerCounter)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work. Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449460#M167726</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449461#M167727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use pick() instead of the if() statement (which only allows for true / false branching):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick( Severity+1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {0} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {1} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {2} &amp;gt;} _ConsumerCounter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[ADL Bathing] = {3} &amp;gt;} _ConsumerCounter)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449461#M167727</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-23T16:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449462#M167728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly. Thank you so much. Out of curiousity, what does the +1 do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 17:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449462#M167728</guid>
      <dc:creator />
      <dc:date>2013-01-23T17:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449463#M167729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding 1 to the value of Severity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a Severity of 0 will execute the first expression in the list, a Severity of 1 the second, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 17:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449463#M167729</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-23T17:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Setting a field equal to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449464#M167730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible not to repeat the sum so many times?&lt;/P&gt;&lt;P&gt;What would you do when you have more than just 4 possible values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Setting-a-field-equal-to-another-field/m-p/449464#M167730</guid>
      <dc:creator />
      <dc:date>2014-10-10T09:29:26Z</dc:date>
    </item>
  </channel>
</rss>

