<?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 Create interval fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742949#M265272</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;&lt;/P&gt;&lt;P&gt;I would like to create interval fields for &lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;age (0-18, 19-25, 26-35, 36-49, 50+) and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;month salary (0-1K, 1-2K, 2-3K, 3-4K, 4K&amp;gt;). Can anyone tell me how to do this and if this should be done the load script or on some other place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[Employees New]:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num([Year Salary]/12) as 'Month Salary'&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Datasources\Employees_New.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Employee$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Employees off]:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Age(Today(),[Date of Birth]) as Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(DATE([Date of Birth], 'D-MM-YYY'), 'DD-MMM-YY') as Birthday,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Money(num([Year Salary]/12),'€#.##0') as 'Month Salary'&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;Datasources\EmpOff.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Employee$);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;Kind regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 15:03:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-18T15:03:23Z</dc:date>
    <item>
      <title>Create interval fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742949#M265272</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;&lt;/P&gt;&lt;P&gt;I would like to create interval fields for &lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;age (0-18, 19-25, 26-35, 36-49, 50+) and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;month salary (0-1K, 1-2K, 2-3K, 3-4K, 4K&amp;gt;). Can anyone tell me how to do this and if this should be done the load script or on some other place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[Employees New]:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num([Year Salary]/12) as 'Month Salary'&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Datasources\Employees_New.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Employee$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Employees off]:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Age(Today(),[Date of Birth]) as Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(DATE([Date of Birth], 'D-MM-YYY'), 'DD-MMM-YY') as Birthday,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Money(num([Year Salary]/12),'€#.##0') as 'Month Salary'&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;Datasources\EmpOff.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Employee$);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; line-height: 1.5em;"&gt;Kind regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742949#M265272</guid>
      <dc:creator />
      <dc:date>2015-03-18T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create interval fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742950#M265273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the monthly salaries you can probably use the class function since the intervals seem to be the same size. You can use the class function in the script and in expression. Doing the calculations in the script is the better option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the age classes you can either use a nested if statement or create a table with the intervals and then use the intervalmatch function to match the ages with the correct interval. See this blog post: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742950#M265273</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-18T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create interval fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742951#M265274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can try this in ur script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Age &amp;lt;= 18,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;0-18&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( Age &amp;gt;18 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Age &amp;lt;26&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;19-25&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( Age &amp;gt;18 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Age &amp;lt;26&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;26-35&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( Age &amp;gt;18 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Age &amp;lt;26&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;36-49&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( Age &amp;gt;49,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;50+&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',''))))) as AgeGroup&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&amp;lt;= 1000,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;0-1K&lt;/SPAN&gt;',&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&amp;gt;1000 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;lt;=2000&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;1&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;-2K&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&amp;gt;2000 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &amp;lt;=3000&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;2-3K&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&amp;gt;3000 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;lt;=4000&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;3-4K&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salary&lt;/SPAN&gt;&amp;gt;4000,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;4K&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;',''))))) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px;"&gt;salary&lt;/SPAN&gt;Group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-interval-fields/m-p/742951#M265274</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-18T15:40:15Z</dc:date>
    </item>
  </channel>
</rss>

