<?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 Alternate States - Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424128#M158039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple requirement relating to alternate states but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document with states: Primary and Secondary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line chart, the chart has 2 expressions:&lt;/P&gt;&lt;P&gt;Sum({Primary} Sales)&lt;/P&gt;&lt;P&gt;Sum({Secondary} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it should map trends of sales data over the two states, simple really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the chart that is produced simply maps the Primary state for both expressions, it doesn't take any notice of the second expression being linked to the secondary state.&amp;nbsp; I would have thought this would be a fundamental requirement of alternate states so I can't believe its not supported, which means that I must have something wrong in my config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart is set up with a state of Inherited but I've tried setting the chart to Inherited, Default, Primary &amp;amp; Secondary and none of them produce the chart I want, which is to compare the trend of Primary vs Secondary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody got any ideas on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 12:18:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-03T12:18:08Z</dc:date>
    <item>
      <title>Alternate States - Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424128#M158039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple requirement relating to alternate states but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document with states: Primary and Secondary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line chart, the chart has 2 expressions:&lt;/P&gt;&lt;P&gt;Sum({Primary} Sales)&lt;/P&gt;&lt;P&gt;Sum({Secondary} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it should map trends of sales data over the two states, simple really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the chart that is produced simply maps the Primary state for both expressions, it doesn't take any notice of the second expression being linked to the secondary state.&amp;nbsp; I would have thought this would be a fundamental requirement of alternate states so I can't believe its not supported, which means that I must have something wrong in my config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart is set up with a state of Inherited but I've tried setting the chart to Inherited, Default, Primary &amp;amp; Secondary and none of them produce the chart I want, which is to compare the trend of Primary vs Secondary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody got any ideas on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424128#M158039</guid>
      <dc:creator />
      <dc:date>2013-05-03T12:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424129#M158040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can't guess in which way your chart isn't working. May be it's only a little detail in your config. &lt;/P&gt;&lt;P&gt;Please find attached a simple example which is working fine. One chart with two expressions and two related listboxes "Prim" and Second". &lt;/P&gt;&lt;P&gt;Hope this will help you to find a way out of your trap.&lt;/P&gt;&lt;P&gt;Roalnd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424129#M158040</guid>
      <dc:creator />
      <dc:date>2013-05-03T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424130#M158041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste your sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 08:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424130#M158041</guid>
      <dc:creator />
      <dc:date>2013-05-05T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States - Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424131#M158042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helped, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem was that I was mixing some expression outside of the primary &amp;amp; secondary states, so my actual expression was something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {Primary &amp;lt;DateNum={"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would appear that adding in the startdate/enddate comparison removes the association with Primary or Secondary states, so I'm guessing that I need to change this so that it does something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {Primary &amp;lt;DateNum={"&amp;gt;=$(vPrimaryStartDate)&amp;lt;=$(vPrimaryEndDate)"}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 08:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Problem/m-p/424131#M158042</guid>
      <dc:creator />
      <dc:date>2013-05-07T08:14:02Z</dc:date>
    </item>
  </channel>
</rss>

