<?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 Add condition to script in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353827#M906</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;my Name is Kristian and i am new to qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ve managed to work some things out by myself but now i need help. I hope to ask in the right place &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Questions, same case but different approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Scriptview: My column Item is unique but "WITPRICELI" has more than one variables (A, B, C, ....). Is there a possibility to tell the script: Just give me from the table xxx all unique Items but only variable "A"?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITPRICELI &lt;STRONG&gt;(code?)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Y:\xxx.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is xxx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Sheetview: I dont change the scriptview and i am going to make a Table Box with the given variables. The Table box is now ugly because for every "unique" Item still pops up 3 times(different variables). Is it possible, and if where, to command the table: show me only variable "A"?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Given table now:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item xx A&lt;/P&gt;&lt;P&gt;Item xx B&lt;/P&gt;&lt;P&gt;Item xx C&lt;/P&gt;&lt;P&gt;Item xxx A&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thats what i want&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item xx A&lt;/P&gt;&lt;P&gt;Item xxx A&lt;/P&gt;&lt;P&gt;Item xxxx A&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 10:01:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-16T10:01:56Z</dc:date>
    <item>
      <title>Add condition to script</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353827#M906</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;my Name is Kristian and i am new to qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ve managed to work some things out by myself but now i need help. I hope to ask in the right place &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Questions, same case but different approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Scriptview: My column Item is unique but "WITPRICELI" has more than one variables (A, B, C, ....). Is there a possibility to tell the script: Just give me from the table xxx all unique Items but only variable "A"?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITPRICELI &lt;STRONG&gt;(code?)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Y:\xxx.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is xxx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Sheetview: I dont change the scriptview and i am going to make a Table Box with the given variables. The Table box is now ugly because for every "unique" Item still pops up 3 times(different variables). Is it possible, and if where, to command the table: show me only variable "A"?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Given table now:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item xx A&lt;/P&gt;&lt;P&gt;Item xx B&lt;/P&gt;&lt;P&gt;Item xx C&lt;/P&gt;&lt;P&gt;Item xxx A&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thats what i want&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item xx A&lt;/P&gt;&lt;P&gt;Item xxx A&lt;/P&gt;&lt;P&gt;Item xxxx A&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 10:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353827#M906</guid>
      <dc:creator />
      <dc:date>2012-05-16T10:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add condition to script</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353828#M907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITPRICELI&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Y:\xxx.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is xxx)&lt;/P&gt;&lt;P&gt;WHERE WITPRICELI = 'A';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT - the following added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will mean only distinct Item numbers with a WITPRICELI of 'A' will be loaded at all.&amp;nbsp; If you want to load all data but choose to only display certain rows in a chart table you can remove the DISTINCT and the WHERE clause (all data will now be loaded) and then maybe have a simple listbox of WITPRICELI and select one of them.&amp;nbsp; You chart and table objects will then only show rows for the value you have selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR!&amp;nbsp; You can load all data but force a chart to only use rows where WITPRICELI is 'A' by either using a dynamic dimension (e.g. =IF(WITPRICELI='A',Item) or set analysis in your expressions (e.g. Sum({&amp;lt;WITPRICELI={A}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 10:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353828#M907</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-16T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add condition to script</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353829#M908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, that helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 10:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Add-condition-to-script/m-p/353829#M908</guid>
      <dc:creator />
      <dc:date>2012-05-16T10:25:22Z</dc:date>
    </item>
  </channel>
</rss>

