<?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: Any wrong with my code in alternate state? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581910#M479540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben can you provide the sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 08:29:15 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-01-29T08:29:15Z</dc:date>
    <item>
      <title>Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581909#M479539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using alternate state namely : Group 1 and Group 2. Am i able to use set analysis on values that is group under 1 and 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a valuelist Barchart to have the customized X axis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension of bar chart&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression of bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'LADEN',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'LADEN'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'EMPTY',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'EMPTY'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;B=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'LADEN',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 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;Transit_Container_Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'F'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'EMPTY',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 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;Transit_Container_Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'E'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;it seems that the value does&amp;nbsp; not change, any wrrong with my code, thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581909#M479539</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2014-01-29T08:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581910#M479540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben can you provide the sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581910#M479540</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-01-29T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581911#M479541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bennn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression look ok. Which list box use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;alternate state&lt;/SPAN&gt;? Or possible attached your file here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581911#M479541</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2014-01-29T08:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581912#M479542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really hope I can give the sample file... I guess I might have to recreate with dummy data. Ok If I can give screenshot?&lt;BR /&gt;My code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'LADEN',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'LADEN'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('LADEN','EMPTY') = 'EMPTY',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;as you can see from the selection and table name A, i seleted Throughput A EMPTY but it shows data for Laden and Empty. The data seems fix no matter what selection i choose on the selection box. Figures shown on the graph are all wrong....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;[Group 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'EMPTY'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581912#M479542</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2014-01-29T08:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581913#M479543</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 alternate states refer to selections made &lt;EM&gt;in that state,&lt;/EM&gt; such as in a list box set to that state. I am not sure what you are trying to achieve with this expression, but I think the states are superfluous and possibly breaking your logic. Try the expressions without states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you applied states to the tab containing this chart or to the chart object itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581913#M479543</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-29T08:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581914#M479544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree. I have tried to select other fields and it seems that it is working. it seems that there is a conflict when I choose Container Status on panel box when my code is already defined for this. so sorry about it, haha. IT SEEMS WORKING!!! haha thanks everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581914#M479544</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2014-01-29T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581915#M479545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have decided not to use Valuelist as it might be difficult to maintain,&lt;/P&gt;&lt;P&gt;Instead I have put it on the dimension in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='LADEN' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_Container_Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'F','LADEN'&lt;BR /&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Derived_Container_Class_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'EMPTY' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transit_Container_Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='E','EMPTY')&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have Database A that has Country and Database B that has Transit_Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of listing out all the country saying if(Country = Indonesia or Transit_Country - Indonesia','Indonesia',)is there any shortcut ways that they will do matching by themself and call the specific name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will help greatly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 09:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581915#M479545</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2014-01-29T09:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any wrong with my code in alternate state?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581916#M479546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While your script looks okay &lt;EM&gt;per se&lt;/EM&gt;, it does appear that you could simplify some of these comparisons by doing the data manipulation in the load script and assigning variables to some of the items that are being used for comparison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-wrong-with-my-code-in-alternate-state/m-p/581916#M479546</guid>
      <dc:creator>greg-anderson</dc:creator>
      <dc:date>2014-01-29T21:15:23Z</dc:date>
    </item>
  </channel>
</rss>

