<?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: Expression with Different Alternate States doesn't work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760822#M270687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have managed to resolve my issue.&lt;/P&gt;&lt;P&gt;1. I have defined a state for the document.&lt;/P&gt;&lt;P&gt;2. For relevant list boxes I have defined states.&lt;/P&gt;&lt;P&gt;The expression that works as expected is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({State1&amp;lt;Date=$::Date,Country=p(Country),Branch=p(Branch)&amp;gt;}Quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 12:32:46 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2014-11-04T12:32:46Z</dc:date>
    <item>
      <title>Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760815#M270680</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;The following expression references different alternate states.&lt;/P&gt;&lt;P&gt;But it doesn't work, i.e., it doesn't take into account the actual selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Date=State2::Date,Country=Country1::Country,Branch=Branch1::Branch&amp;gt;}Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760815#M270680</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-11-04T09:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760816#M270681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax is correct. Can you post a document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760816#M270681</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-04T09:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760817#M270682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You meant that it doesn't considers the default state selections? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760817#M270682</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-04T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760818#M270683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right. It ignores the selections.&lt;/P&gt;&lt;P&gt;I have defined a state for the sheet, and left only 2 states for listboxes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this expression takes into account selection in a branch, as expected, but not the date:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date=State1::Date,Country=$::Country,Branch=$::Branch&amp;gt;}Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems there is an issue with such a syntax:&lt;/P&gt;&lt;P&gt;State2::Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 10:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760818#M270683</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-11-04T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760819#M270684</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;The original document is huge. &lt;/P&gt;&lt;P&gt;But I think there is a clue which might help:&lt;/P&gt;&lt;P&gt;The list box with the defined state has a &lt;STRONG&gt;Branch Description&lt;/STRONG&gt; field to select .&lt;/P&gt;&lt;P&gt;But the expression is including the field &lt;STRONG&gt;Branch&lt;/STRONG&gt;, which is the linked code to the &lt;STRONG&gt;Branch Description&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Before alternate states, the set analysis expression worked fine: &lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Date=p(Date1), Country=p(Country1),Branch=p(Branch1)&amp;gt;}Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea how this can be implemented with alternate states?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 11:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760819#M270684</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-11-04T11:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760820#M270685</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum ({&amp;lt;Date=p(Date1), Country=p(Country1),Branch=p(Branch1)&amp;gt;}Quantity)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If this works then Date1, Country1 and Branch1 are not alternate states but fields. Or have you defined alternate states with those names as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760820#M270685</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-04T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760821#M270686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;my dimension&amp;nbsp; is ornament but i want show in pivot table with selected "brand"&lt;/P&gt;&lt;P&gt;condition is "BRAND=Y"&lt;/P&gt;&lt;P&gt;how can i show&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760821#M270686</guid>
      <dc:creator>sakamsureshbabu</dc:creator>
      <dc:date>2014-11-04T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Different Alternate States doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760822#M270687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have managed to resolve my issue.&lt;/P&gt;&lt;P&gt;1. I have defined a state for the document.&lt;/P&gt;&lt;P&gt;2. For relevant list boxes I have defined states.&lt;/P&gt;&lt;P&gt;The expression that works as expected is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({State1&amp;lt;Date=$::Date,Country=p(Country),Branch=p(Branch)&amp;gt;}Quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Different-Alternate-States-doesn-t-work/m-p/760822#M270687</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-11-04T12:32:46Z</dc:date>
    </item>
  </channel>
</rss>

