<?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 Applying logic to attribute field within a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005355#M341500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have what I think is referred to as an attribute field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a field called FIELD_NAME which contains various fields such as Region, Director and Company Name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of these fields ( ie Region, Director and Company Name )are in a separate field called FIELD_VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how would I apply logic ie a standard pick wildmatch statement to say the region field where FIELD_VALUE of Region is equal to Belgium Province, Belgium District then show Region as ‘Belgium’ and where FIELD_VALUE is equal to Japan then Region should show as ‘Asia’. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have got the below statement but could do with help tweaking it up as I think it’s incorrect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 'Region' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ='Belgium Province', 'Belgium District’,’Japan')&lt;BR /&gt; , 'Belgium*', 'Japan*')+1, 'Belgium', 'Japan') as REGION_NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 10:07:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-06T10:07:15Z</dc:date>
    <item>
      <title>Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005355#M341500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have what I think is referred to as an attribute field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a field called FIELD_NAME which contains various fields such as Region, Director and Company Name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of these fields ( ie Region, Director and Company Name )are in a separate field called FIELD_VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how would I apply logic ie a standard pick wildmatch statement to say the region field where FIELD_VALUE of Region is equal to Belgium Province, Belgium District then show Region as ‘Belgium’ and where FIELD_VALUE is equal to Japan then Region should show as ‘Asia’. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have got the below statement but could do with help tweaking it up as I think it’s incorrect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 'Region' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ='Belgium Province', 'Belgium District’,’Japan')&lt;BR /&gt; , 'Belgium*', 'Japan*')+1, 'Belgium', 'Japan') as REGION_NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005355#M341500</guid>
      <dc:creator />
      <dc:date>2015-10-06T10:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005356#M341501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data along with the expected output... Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005356#M341501</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-06T10:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005357#M341502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use mapping table where you can map currently available field values to new descriptions you want to map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005357#M341502</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-06T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005358#M341503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;If ( &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; = 'Region' ,&lt;/SPAN&gt; Pick&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;FieldValue,&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'Belgium*',’Japan*')&lt;BR /&gt; ,'Belgium', 'Japan') ) as REGION_NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005358#M341503</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-06T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005359#M341504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect ... thanks for your help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 11:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005359#M341504</guid>
      <dc:creator />
      <dc:date>2015-10-06T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005360#M341505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I thought this was correct but noticed that some of the values are mixed up ie some values that are meant to show Belgium instead show Japan and vice versa. Also the values are not aggregated so instead of just seeing two rows ie Japan and Belgium I am seeing multiple rows for these entities. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 08:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005360#M341505</guid>
      <dc:creator />
      <dc:date>2015-10-09T08:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005361#M341506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to share sample data and expected output against that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 08:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005361#M341506</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-09T08:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005362#M341507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies as frustrating it is Im unable to post data for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a differences between the type of match functions which may be more explicit ? It seems like the wildmatch is recognising a word which may exist in one of the values then matching that up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance if I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'All of Belgium' - expecting to see 'Belgium'&lt;/P&gt;&lt;P&gt;'All of Netherlands' - expecting to see 'Netherlands'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am instead seeing some rows where I have ' All of Belgium' showing as Netherlands&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005362#M341507</guid>
      <dc:creator />
      <dc:date>2015-10-09T11:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Applying logic to attribute field within a field</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005363#M341508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Putting '*' at both ends should do the job, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;If ( &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: maroon;"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: black;"&gt; = 'Region' ,&lt;/SPAN&gt; Pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;FieldValue,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; '*Belgium*',’*Japan*')&lt;BR /&gt;,'Belgium', 'Japan') ) as REGION_NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;And yes, sample data means sample that could have been in a simple excel or csv.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-logic-to-attribute-field-within-a-field/m-p/1005363#M341508</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-09T11:57:06Z</dc:date>
    </item>
  </channel>
</rss>

