<?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 Syntax for alternate state with conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775260#M1032269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do a distinct count on Seq# when Payer Type = 'T' for State1 and State2. Here is what I'm using...&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&lt;SPAN style="color: #0000ff;"&gt;State2&lt;/SPAN&gt;}{$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Payer Type]&lt;/SPAN&gt;={T}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Seq#]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell this formula renders all states, not just State2. Do I have my syntax incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 17:04:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-27T17:04:23Z</dc:date>
    <item>
      <title>Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775260#M1032269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do a distinct count on Seq# when Payer Type = 'T' for State1 and State2. Here is what I'm using...&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&lt;SPAN style="color: #0000ff;"&gt;State2&lt;/SPAN&gt;}{$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Payer Type]&lt;/SPAN&gt;={T}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Seq#]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell this formula renders all states, not just State2. Do I have my syntax incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775260#M1032269</guid>
      <dc:creator />
      <dc:date>2015-01-27T17:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775261#M1032270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have too many braces. Should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;State2&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Payer Type]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={T}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Seq#]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;BR /&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;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775261#M1032270</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-27T17:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775262#M1032271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it changes by state now but when I select other filters it's disregarding them. So here's what I now have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&lt;SPAN style="color: #0000ff;"&gt;State2&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Payer Type]&lt;/SPAN&gt;={T}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Seq#]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;Do I need to add $ somewhere to ensure the inherited filters apply?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775262#M1032271</guid>
      <dc:creator />
      <dc:date>2015-01-27T17:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775263#M1032272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's back to your original syntax but with "*" between the sets:&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;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;State2&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; * $&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Payer Type]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={T}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Seq#]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;BR /&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;"&gt;Note corrected syntax.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775263#M1032272</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-27T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775264#M1032273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I tweaked what you had a little and I think this is it. Just in case anyone reads this here is the final winning combo!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({State&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * $&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Payer Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={T}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Seq#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rob - thank you so much. It's so nice to be able to bounce these dilemma's off others:) Much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;BW&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775264#M1032273</guid>
      <dc:creator />
      <dc:date>2015-01-27T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775265#M1032274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help. Don't forget to mark something (including your own response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ) as correct to close the thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775265#M1032274</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-27T17:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for alternate state with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775266#M1032275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - how would this formula look if I didn't need to define payer type = T but wanted all filters not in State2 to apply?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 02:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-alternate-state-with-conditions/m-p/775266#M1032275</guid>
      <dc:creator />
      <dc:date>2015-01-29T02:38:44Z</dc:date>
    </item>
  </channel>
</rss>

