<?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: Sort by expresion using wildcard in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338627#M124896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the WildMatch() function alone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;WildMatch(objec, 'a*1', 'a*2')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is "a-01" then the function will return "1", if the value is "a02" the function will return "2". If the value is not in the list, the funtction will return "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, create a numeric field in the script to get better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 15:53:43 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-06-05T15:53:43Z</dc:date>
    <item>
      <title>Sort by expresion using wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338626#M124895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Is posible this? &lt;/P&gt;&lt;P&gt;In a Pie chart, I try to sort by expression using wildcard to replace character for values, if I do this works:&lt;/P&gt;&lt;P&gt;if(objec ='a-01-1',1, &lt;BR /&gt;if(objec ='a-02-2',2))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But if do this not work:&lt;/P&gt;&lt;P&gt;if(objec ='a-*-1',1, &lt;BR /&gt;if(objec ='a-*-2',2))&lt;/P&gt;&lt;P&gt;How I can use the wildcard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338626#M124895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-05T15:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expresion using wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338627#M124896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the WildMatch() function alone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;WildMatch(objec, 'a*1', 'a*2')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is "a-01" then the function will return "1", if the value is "a02" the function will return "2". If the value is not in the list, the funtction will return "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, create a numeric field in the script to get better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338627#M124896</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-05T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Sort by expresion using wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338628#M124897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the string operator LIKE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(objec like 'a-*-1',1, &lt;/P&gt;&lt;P&gt;if(objec like 'a-*-2',2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338628#M124897</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-05T15:53:47Z</dc:date>
    </item>
    <item>
      <title>Sort by expresion using wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338629#M124898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Tks for the answers, with this information I can solve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 18:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expresion-using-wildcard/m-p/338629#M124898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-05T18:58:47Z</dc:date>
    </item>
  </channel>
</rss>

