<?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: Selection of work centers in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422954#M1148752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Try this&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(pick(WildMatch(Workcenter,'*AM*'),'AM') or &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick(WildMatch(Workcenter,'&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'PM-TECH&lt;/STRONG&gt;'),'PM'),&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Workcenter&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 09:23:44 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-05-30T09:23:44Z</dc:date>
    <item>
      <title>Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422946#M1148742</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;I have a lot of work centers in my file: PM-TECH, PM-PRO, PM-OFF, AM-SLIT, AM-DOCT and many more.&lt;/P&gt;&lt;P&gt;I want to use work center as dimension in a chart but I want to filter out PM-TECH and all that starts with AM.&lt;/P&gt;&lt;P&gt;Can i do like this in my script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF([Main WorkCtr]='PM-TECH','PM','AM') as Workcenter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will it work so it's not counting with PM-PRO and PM-OFF, only PM-TECH and all AM?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 06:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422946#M1148742</guid>
      <dc:creator />
      <dc:date>2013-05-30T06:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422947#M1148743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use Calculated Dimension in the front end. use expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Main WorkCtr] not LIKE 'AM*' or [Main WorkCtr] &amp;lt;&amp;gt;'PM-TECH', [Main WorkCtr])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 06:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422947#M1148743</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-05-30T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422948#M1148744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try something like that:&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;WorkCenter = WorkCenter - {'PM-TECH'} - {"AM*"} &amp;gt;} 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 07:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422948#M1148744</guid>
      <dc:creator>oleg_orlov</dc:creator>
      <dc:date>2013-05-30T07:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422949#M1148747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all and thanks for your (very quick!) answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried them all with or without more or less success... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get something like this in my graph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41822" class="jive-image-thumbnail jive-image" onclick="" alt="2013-05-30 10-06-13.jpg" src="/legacyfs/online/41822_2013-05-30 10-06-13.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;but i would like it to be like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41823" class="jive-image-thumbnail jive-image" onclick="" alt="2013-05-30 10-12-32.jpg" src="/legacyfs/online/41823_2013-05-30 10-12-32.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Just a difference between PM-TECH (PM-PRO and the other PM's should not count) and all AM together.&lt;/P&gt;&lt;P&gt;My expression is clear so i don't want to touch that, it must be done in the script or in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 08:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422949#M1148747</guid>
      <dc:creator />
      <dc:date>2013-05-30T08:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422950#M1148748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try "Calculated Dimension" yet? In your pie chart use this calculated dimension &lt;/P&gt;&lt;P&gt;=If(WildMatch(Workcenter,'*AM*','AM',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(Workcenter,'*PM*','PM')))&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>Thu, 30 May 2013 08:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422950#M1148748</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-30T08:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422951#M1148749</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;I get an error if i try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41824" alt="2013-05-30 10-46-12.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/41824_2013-05-30+10-46-12.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have tried to put in ,1 and ,0 where the mark is but then my chart is all black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks fine when i do like i described from the start; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Main WorkCtr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='PM-TECH','PM','AM') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Workcenter &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i im not sure if it's showing the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 08:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422951#M1148749</guid>
      <dc:creator />
      <dc:date>2013-05-30T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422952#M1148750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;= if (WildMatch (Workcenter, 'AM*') &amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'AM',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (WildMatch (Workcenter, 'PM*') &amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'PM',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Others'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422952#M1148750</guid>
      <dc:creator>oleg_orlov</dc:creator>
      <dc:date>2013-05-30T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422953#M1148751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oop sorry my fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this one&lt;/P&gt;&lt;P&gt;=If(WildMatch(Workcenter,'*AM*'),'AM',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(Workcenter,'*PM*'),'PM'))&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>Thu, 30 May 2013 09:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422953#M1148751</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-30T09:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422954#M1148752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Try this&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(pick(WildMatch(Workcenter,'*AM*'),'AM') or &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick(WildMatch(Workcenter,'&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'PM-TECH&lt;/STRONG&gt;'),'PM'),&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Workcenter&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422954#M1148752</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-30T09:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422955#M1148753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but the problem is that all PM is counted. It is just the workcenter with the name 'PM-TECH' that should be accounted for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 10:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422955#M1148753</guid>
      <dc:creator />
      <dc:date>2013-05-30T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422956#M1148754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;= if (WildMatch (Workcenter, 'AM*'),&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'AM',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Workcenter = 'PM-TECH'),&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'PM',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Others'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;or without Others:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;= if (WildMatch (Workcenter, 'AM*'),&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'AM',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Workcenter = 'PM-TECH'),&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'PM'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 10:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422956#M1148754</guid>
      <dc:creator>oleg_orlov</dc:creator>
      <dc:date>2013-05-30T10:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selection of work centers in script</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422957#M1148755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try this again&lt;/P&gt;&lt;P&gt;=If(WildMatch(Workcenter,'*AM*'),'AM',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Workcenter='PM-TECH','PM',Null()))&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>Thu, 30 May 2013 10:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-work-centers-in-script/m-p/422957#M1148755</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-30T10:18:24Z</dc:date>
    </item>
  </channel>
</rss>

