<?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: Help with a new field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408248#M1163218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great guys thanks for the replies. i dont think it will work tho as there are around 200 fields, and within the fieldnames of these 200 fields it will include the 'Term' (autumn, Summer ect). so i will need the new 'Term' field to look at all of these 200 fields. &lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 15:36:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-06T15:36:01Z</dc:date>
    <item>
      <title>Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408244#M1163210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 14:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408244#M1163210</guid>
      <dc:creator />
      <dc:date>2012-11-06T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408245#M1163212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a new field in the script using a wildmatch function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Title&lt;/SPAN&gt;,'*Autumn*'),'Autumn',&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Title&lt;/SPAN&gt;,'*Spring*'),'Spring',&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Title&lt;/SPAN&gt;,'*Summer*'),'Summer',&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Title&lt;/SPAN&gt;,'*Winter*'),'Winter','None')))) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Term &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the field Term as a list box like usual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408245#M1163212</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408246#M1163214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of what I mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408246#M1163214</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408247#M1163217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I would use a combination of PICK() function along with WILDMATCH() -as rebeccad correctly said- to get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PICK(WILDMATCH(Title, '*autumn*', '*spring*', '*summer*', '*winter*'), 'Autumn', 'Spring', 'Summer', 'Winter') AS Term&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same result, just a little cleaner code if you have more values to compare.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408247#M1163217</guid>
      <dc:creator>diegofcaivano</dc:creator>
      <dc:date>2012-11-06T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408248#M1163218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great guys thanks for the replies. i dont think it will work tho as there are around 200 fields, and within the fieldnames of these 200 fields it will include the 'Term' (autumn, Summer ect). so i will need the new 'Term' field to look at all of these 200 fields. &lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408248#M1163218</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408249#M1163219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The inline load was just an example.&amp;nbsp; When you add it to your script and use the equation against whatever your field name is, it will look at every field, no matter how many you have.&amp;nbsp; If you have a sample file, it would be easier for Diego and I to show you what we mean. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408249#M1163219</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408250#M1163220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebeccad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your example..&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnReadingAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnWritingAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnMathematicsAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnScienceAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnICTAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringReadingAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringWritingAPS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringMathematicsAPS,&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Seasons:&lt;BR /&gt;LOAD *,&lt;BR /&gt; If(WildMatch(Title,'*Autumn*'),'Autumn',&lt;BR /&gt; If(WildMatch(Title,'*Spring*'),'Spring',&lt;BR /&gt; If(WildMatch(Title,'*Summer*'),'Summer',&lt;BR /&gt; If(WildMatch(Title,'*Winter*'),'Winter','None')))) as Term&lt;BR /&gt;Resident Data;&lt;BR /&gt;DROP Table Data; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the lines&amp;nbsp;&amp;nbsp; PupilResultsY1SpringReadingAPS,etc are field names not values within a field. so where you have the field name of Title, and then the data under it. its the data under it hat are my field names. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408250#M1163220</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408251#M1163221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,PICK(WILDMATCH(Title, '*autumn*', '*spring*', '*summer*', '*winter*'), 'Autumn', 'Spring', 'Summer', 'Winter') AS Term&amp;nbsp; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnReadingAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnWritingAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnMathematicsAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnScienceAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1AutumnICTAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringReadingAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringWritingAPS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PupilResultsY1SpringMathematicsAPS,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408251#M1163221</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-06T15:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408252#M1163222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All &lt;/P&gt;&lt;P&gt;attached is a sample of data.as you can see there are a lot of fields with the 'Term' incorporated into the fieldnames. &lt;/P&gt;&lt;P&gt;I want to create a new field called 'Term' and i want to be able to select 'Summer' (for example) and see all the data related to 'Summer'. &lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408252#M1163222</guid>
      <dc:creator />
      <dc:date>2012-11-06T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a new field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408253#M1163223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean.&amp;nbsp; Unfortunately that makes it a lot harder.&amp;nbsp; I have attached an example in which I used conditional layouts to show the relevant column headers based on season selection. However, this may not be feasible for you if you have so many.&amp;nbsp; Maybe someone else on the forum will have a better solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 16:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-new-field/m-p/408253#M1163223</guid>
      <dc:creator />
      <dc:date>2012-11-06T16:17:30Z</dc:date>
    </item>
  </channel>
</rss>

