<?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: maxstring to return data if contains Y in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355272#M833721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My intention is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct [p-code],&lt;/P&gt;&lt;P&gt;[alg-code],&lt;/P&gt;&lt;P&gt;If(Match([alg-code],'GLUT','EGG','CRUS'), 'Y', 'N') as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 16:57:14 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-12T16:57:14Z</dc:date>
    <item>
      <title>maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355266#M833712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="mike3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166557_mike3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to return word Egg on my table on Field that says Y and Blank if its N of blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database contains Y,N and blank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355266#M833712</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355267#M833713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the case, I don't think whether you need MaxString(). Why not simply IF condition without MaxString() function &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355267#M833713</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-12T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355268#M833714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly are you using Y, N? on which field I mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355268#M833714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-12T16:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355269#M833715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Y,N is the alg-stat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355269#M833715</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2017-06-12T16:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355270#M833717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry how will the if command look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355270#M833717</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2017-06-12T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355271#M833719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you are testing for values such as GLUT, EGG against &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;alg-stat? Does it contain both?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355271#M833719</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-12T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355272#M833721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My intention is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct [p-code],&lt;/P&gt;&lt;P&gt;[alg-code],&lt;/P&gt;&lt;P&gt;If(Match([alg-code],'GLUT','EGG','CRUS'), 'Y', 'N') as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355272#M833721</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-12T16:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355273#M833722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;Alg-code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cake&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;coke&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data looks like this on Database, where Y,N are Alg-stat, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what i need to achieve is where Y i need it to say Egg and N to be blank. This is just for the Egg Alg-code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355273#M833722</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2017-06-12T17:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355274#M833723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="128"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Alg-code&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;Cake&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;coke&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;the data looks like this on Database, where Y,N are Alg-stat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;so what i need to achieve is where Y i need it to say Egg and N to be blank. This is just for the Egg Alg-code&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 15px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/1285916" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-size: 11.7px; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;maxstring to return data if contains Y&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355274#M833723</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2017-06-12T17:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355275#M833725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Distinct [p-code], If([Alg-code]='Y', 'Egg', 'Blank') as Egg;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355275#M833725</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-12T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355276#M833726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([alg-code] = 'EGG' and [alg-stat] = 'Y', 'Egg', Null()) as Egg&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355276#M833726</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-12T17:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring to return data if contains Y</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355277#M833728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allergy_tmp:&lt;/P&gt;&lt;P&gt;Load Distinct [p-code],&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='GLUT',[alg-stat])) as Gluten,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MaxString(If([alg-code]='EGG',[alg-stat])) as Egg&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='CRUS',[alg-stat])) as Crustaceans,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='CLRY',[alg-stat])) as Celery,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='SOY',[alg-stat])) as Soyabeans,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='SESM',[alg-stat])) as Sesame,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='SO2',[alg-stat])) as Sulphur_Dioxide,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='LUP',[alg-stat])) as Lupin,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='MILK',[alg-stat])) as Milk,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='PNUT',[alg-stat])) as Peanuts,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='NUT',[alg-stat])) as Treenuts,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='MSTD',[alg-stat])) as Mustard,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='FISH',[alg-stat])) as Fish,&lt;/P&gt;&lt;P&gt;MaxString(If([alg-code]='MLSC',[alg-stat])) as Molluscs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Products&lt;/P&gt;&lt;P&gt;Group By [p-code];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields [alg-code],[alg-stat] from Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load Distinct *&lt;/P&gt;&lt;P&gt;resident Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME table tmp to Products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Products)&lt;/P&gt;&lt;P&gt;Load [p-code],&lt;/P&gt;&lt;P&gt;Gluten,&lt;/P&gt;&lt;P&gt;Egg,&lt;/P&gt;&lt;P&gt;Crustaceans,&lt;/P&gt;&lt;P&gt;Celery,&lt;/P&gt;&lt;P&gt;Soyabeans,&lt;/P&gt;&lt;P&gt;Sesame,&lt;/P&gt;&lt;P&gt;Sulphur_Dioxide,&lt;/P&gt;&lt;P&gt;Lupin,&lt;/P&gt;&lt;P&gt;Milk,&lt;/P&gt;&lt;P&gt;Peanuts,&lt;/P&gt;&lt;P&gt;Treenuts,&lt;/P&gt;&lt;P&gt;Mustard,&lt;/P&gt;&lt;P&gt;Fish,&lt;/P&gt;&lt;P&gt;Molluscs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Allergy_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Allergy_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is the whole script and works but returning Y&amp;nbsp; or N under each alg-code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what im trying to archieve is replace Y with the name each alg code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-to-return-data-if-contains-Y/m-p/1355277#M833728</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2017-06-12T17:23:11Z</dc:date>
    </item>
  </channel>
</rss>

