<?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: If function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331692#M703871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 13:10:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-03T13:10:19Z</dc:date>
    <item>
      <title>If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331690#M703869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have many values that I need to assign to a column depending on another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 'Group Description' has 'WR' in it, I need to display 'blank'&lt;/P&gt;&lt;P&gt;if 'Group Description' has 'Support' in it, i need to display 'blank'&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if this one big if statement? And all I wanted to do is search the field group description for specific things, like 'WR' or 'Support' and many others.&lt;/P&gt;&lt;P&gt;Then display something else in my 'Catagory' column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use wildmatch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I would like to do this in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 12:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331690#M703869</guid>
      <dc:creator />
      <dc:date>2012-07-03T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331691#M703870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use mapping load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331691#M703870</guid>
      <dc:creator />
      <dc:date>2012-07-03T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331692#M703871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331692#M703871</guid>
      <dc:creator />
      <dc:date>2012-07-03T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331693#M703872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A wildmatch should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;if(wildmatch([Group Description],'*WR*','*Support*'), 'blank',[Group Description]) as Category,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also look into the QV cookbook on Rob Wunderlich's download page, looking for the mapping table with wildmatch example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331693#M703872</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331694#M703873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Non WR*'), 'Improve/Enhance',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;), &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Project' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &amp;lt;&amp;gt; 'Suite 10'), 'Projects',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;) as Metrics_Catagory &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I seem to be doing something wrong here on the last part. I need it to display 'Projects' for everything that has 'Project' in it but doesn't have 'Suite 10' in the name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331694#M703873</guid>
      <dc:creator />
      <dc:date>2012-07-03T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331695#M703874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that your second if() is never executed, i.e. using two if() statements separated by a comma is not a valid syntax.&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;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Non WR*'), 'Improve/Enhance'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Project' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &amp;lt;&amp;gt; 'Suite 10'), 'Projects',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;)) as Metrics_Catagory &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331695#M703874</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T13:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331696#M703875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;It still doesnt seem to work...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Non WR*'), 'Improve/Enhance', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Project*' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &amp;lt;&amp;gt; 'Suite 4*'),'Projects',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;) as Metrics_Catagory&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident TimeLog;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;drop table &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;TimeLog&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331696#M703875</guid>
      <dc:creator />
      <dc:date>2012-07-03T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331697#M703876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AH SURE your logic in the second if is not correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Non WR*'), 'Improve/Enhance', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if(wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,'Project*') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp; not wildmatch([GroupDescription],'Suite 4*')&lt;/STRONG&gt;,'Projects',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)) as Metrics_Catagory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Please note that your comparison strings only have a wild card at the end, so your GroupDescriptions must &lt;SPAN style="text-decoration: underline;"&gt;start &lt;/SPAN&gt;with e.g. Project to match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;For matches with single strings, you could also use &lt;STRONG&gt;like &lt;/STRONG&gt;string operator:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;'Non WR*' , 'Improve/Enhance', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;'Project*'&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp; not [GroupDescription] like 'Suite 4*'&lt;/STRONG&gt;,'Projects',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[GroupDescription]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)) as Metrics_Catagory&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331697#M703876</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331698#M703877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(wildmatch([GroupDescription],'Non WR*'), 'Improve/Enhance',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(wildmatch([GroupDescription],'Project*') and&amp;nbsp; not wildmatch([GroupDescription],'Suite 4*'),'Projects',[GroupDescription])) as Metrics_Catagory,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(wildmatch([GroupDescription],'*Non WR*'), 'Improve/Enhance',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(wildmatch([GroupDescription],'*Project*') and&amp;nbsp; not wildmatch([GroupDescription],'*Suite 4*'),'Projects',[GroupDescription])) as Metrics_Catagory2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GroupDescription&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non WR Test1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non wr Test2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non WR sdfdsfsd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Project Suite 4 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Project Suite 42&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Suite 51 Project&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Suite 42 Project 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331698#M703877</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331699#M703878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I also assign those that say 'Suite 4*' a value for Metrics_Catagory? At the moment, it runs but isnt doing it correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They all start with 'Project' in the GroupDescription, so I want those to show as 'Projects' in Metrics_Catagory. But those that have 'Suite 4' WITHIN the field (it comes after "Project") need to say 'Lean' for Metrics_Catagory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now they all show as 'Projects' in Metrics_Catagory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331699#M703878</guid>
      <dc:creator />
      <dc:date>2012-07-03T14:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331700#M703879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The wildmatch() functions are just used as conditions in the if() statements. So you essentiall need to think about what your conditions are and what you want THEN to do and what ELSE (in the then / else branches, second and third argument to if() statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not 100% sure what your requirements are, but you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;(wildmatch([GroupDescription],'*Non WR*'), 'Improve/Enhance',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if(wildmatch([GroupDescription],'*Project*'),if(wildmatch([GroupDescription],'*Suite 4*'),'Lean','Projects'),&lt;/STRONG&gt;[GroupDescription])) as Metrics_Catagory&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GroupDescription&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non WR Test1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non wr Test2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Non WR sdfdsfsd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Project Suite 4 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Project Suite 42&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Suite 51 Project&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Suite 42 Project 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331700#M703879</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: If function</title>
      <link>https://community.qlik.com/t5/QlikView/If-function/m-p/331701#M703880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked perfectly. Thanks for all the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I continue the same pattern if I want to format others as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function/m-p/331701#M703880</guid>
      <dc:creator />
      <dc:date>2012-07-03T14:57:52Z</dc:date>
    </item>
  </channel>
</rss>

