<?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: Len() and WildMatch() in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908215#M1217998</link>
    <description>&lt;P&gt;not worked, Rob!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 14:12:52 GMT</pubDate>
    <dc:creator>Cascader</dc:creator>
    <dc:date>2022-03-22T14:12:52Z</dc:date>
    <item>
      <title>Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908183#M1217995</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;I have the following expression,&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;len(trim(if(WildMatch(Queue ,'*'&amp;amp;Dept&amp;amp;'*'), Dept)))&amp;gt;0&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;I want to use inside a the following set analysis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;aggr(ONLY({&amp;lt;Is_Dept_Group={'1'},Is_Case_Owner={'1'},_Closed={'0'}&amp;gt;}[Case Number]),[Case Number])&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908183#M1217995</guid>
      <dc:creator>Cascader</dc:creator>
      <dc:date>2022-03-22T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908199#M1217996</link>
      <description>&lt;P&gt;Add the set modifier:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[Case Number]={"=len(trim(if(WildMatch(Queue ,'*'&amp;amp;Dept&amp;amp;'*'), Dept)))&amp;gt;0"}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-Rob&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908199#M1217996</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-03-22T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908201#M1217997</link>
      <description>&lt;P&gt;I think it's not possible within a classical set analysis because your condition requires a row-level evaluation. I think I would adjust a bit and using it as a boolean-condition within the aggr(), like:&lt;/P&gt;
&lt;P&gt;aggr(&lt;BR /&gt;ONLY({&amp;lt;Is_Dept_Group={'1'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Is_Case_Owner={'1'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Closed={'0'}&amp;gt;} [Case Number]) * &lt;STRONG&gt;sign(WildMatch(Queue ,'*'&amp;amp;Dept&amp;amp;'*'))&lt;/STRONG&gt;&lt;BR /&gt;,[Case Number])&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908201#M1217997</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-22T13:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908215#M1217998</link>
      <description>&lt;P&gt;not worked, Rob!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908215#M1217998</guid>
      <dc:creator>Cascader</dc:creator>
      <dc:date>2022-03-22T14:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908217#M1217999</link>
      <description>&lt;P&gt;not working either&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908217#M1217999</guid>
      <dc:creator>Cascader</dc:creator>
      <dc:date>2022-03-22T14:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Len() and WildMatch() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908225#M1218000</link>
      <description>&lt;P&gt;I found this work around, not sure if it's best practice or not, however it give me the correct result&lt;/P&gt;
&lt;P&gt;I used if to check the Lenght first and if it's &amp;gt; 0, then do the aggregation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(len(trim(if(WildMatch(Queue ,'*'&amp;amp;Dept&amp;amp;'*'), Dept)))&amp;gt;0,&lt;/STRONG&gt;&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;aggr(ONLY({&amp;lt;Is_Dept_Group={'1'},Is_Case_Owner={'1'},_Closed={'0'}&amp;gt;}[Case Number]),[Case Number])&lt;/EM&gt;&lt;/FONT&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Len-and-WildMatch-in-set-analysis/m-p/1908225#M1218000</guid>
      <dc:creator>Cascader</dc:creator>
      <dc:date>2022-03-22T14:35:44Z</dc:date>
    </item>
  </channel>
</rss>

