<?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: Classifying in variable ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552551#M744094</link>
    <description>Such a nice solution!&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;BR /&gt;&lt;BR /&gt;N.</description>
    <pubDate>Tue, 05 Mar 2019 18:17:10 GMT</pubDate>
    <dc:creator>Nino</dc:creator>
    <dc:date>2019-03-05T18:17:10Z</dc:date>
    <item>
      <title>Classifying in variable ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552293#M744092</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I need to classify the employees basing on their seniority; the ranges aren't all equals each others; the 1st one is beween 1 and 2 years, the 2nd one is from 3 up to 5, the 3rd is 6-10, the 4th is 11-20, the 5th over 20.&lt;/P&gt;&lt;P&gt;Can you suggest me a simple way to create these ranges and explain me how to put the count(EmployId) in the right range?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552293#M744092</guid>
      <dc:creator>Nino</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Classifying in variable ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552310#M744093</link>
      <description>&lt;P&gt;You can use a nested-if (simple to build but hardcoded and hard to maintain), or through interval (data driven).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nested If&lt;/P&gt;&lt;PRE&gt;If(Seniority &amp;lt;= 2, Dual('&amp;lt;2', 1),
If(Seniority &amp;lt;= 5, Dual('3-5'), 3,
If(Seniority &amp;lt;= 10, Dual('6-10'), 6,
...
))) as SeniorityGroup,&lt;/PRE&gt;&lt;P&gt;Interval match&lt;/P&gt;&lt;PRE&gt;Intervals:	
LOAD From, To, Dual(Label, RowNo()) as Group
Inline
[
	From, To, Label
	1, 2, &amp;lt;2
	3, 5, 3-5
	6, 10, 6-10
	...
];

Left Join (Data)
IntervalMatch(Seniority)
LOAD From, To
Residen Intervals;

// Optional cleanup
Left Join (Data)
LOAD From, To, Group
Residen Intervals;

DROP Table Intervals;
DROP Fields From, To;&lt;/PRE&gt;&lt;P&gt;The latter script assumes that your data table containing the seniority is called Data, and that the seniority is integer values.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552310#M744093</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-03-05T11:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Classifying in variable ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552551#M744094</link>
      <description>Such a nice solution!&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;BR /&gt;&lt;BR /&gt;N.</description>
      <pubDate>Tue, 05 Mar 2019 18:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Classifying-in-variable-ranges/m-p/1552551#M744094</guid>
      <dc:creator>Nino</dc:creator>
      <dc:date>2019-03-05T18:17:10Z</dc:date>
    </item>
  </channel>
</rss>

