<?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: Add alternate state to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875166#M996274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this maybe:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;=Count({[State 1]} + {[State2]} DISTINCT if(isnull([Gender]), [Participant_ID]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 16:08:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-22T16:08:54Z</dc:date>
    <item>
      <title>Add alternate state to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875163#M996271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the correct syntax if I add an alternate state to this set analysis statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if(isnull([Gender]), [Participant_ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of times a participant ID has an associated gender type that is null. I need to do this for state 1 and state 2, which represent different time periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had luck slipping in alternate state in. Your help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875163#M996271</guid>
      <dc:creator />
      <dc:date>2015-06-22T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add alternate state to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875164#M996272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...one correction...I need to count the UNIQUE number of times a participant ID has an associated gender type that is null. Need for two different states.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875164#M996272</guid>
      <dc:creator />
      <dc:date>2015-06-22T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add alternate state to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875165#M996273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a set analyis expression in your current statement, but you can add it like this:&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; font-size: 13px; line-height: 1.5em;"&gt;=count({State1} distinct if(isnull([Gender]), [Participant_ID]))&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: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({State2} distinct if(isnull([Gender]), [Participant_ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875165#M996273</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-22T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add alternate state to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875166#M996274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this maybe:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;=Count({[State 1]} + {[State2]} DISTINCT if(isnull([Gender]), [Participant_ID]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875166#M996274</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add alternate state to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875167#M996275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works! Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two additional questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table where I'm showing the distinct count of participant IDs for Male, Female and null. I included a multi-box filter where the end user can select if they want to see participant ID counts for just males, just females or just nulls. Null doesn't show up as an option, obviously. Any suggestions on how to get around this? I'd like the end user to only see nulls if they so choose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, if the end user wants to filter on only males, for example, then the participant ID counts for female and null should go to zero. This is happening for female but not null. Is there a way to get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the additional help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-alternate-state-to-set-analysis/m-p/875167#M996275</guid>
      <dc:creator />
      <dc:date>2015-06-22T16:45:56Z</dc:date>
    </item>
  </channel>
</rss>

