<?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: Create groups based on calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624771#M547563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your script, or better yet, your document log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 03:23:14 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-02-10T03:23:14Z</dc:date>
    <item>
      <title>Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624763#M547555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field for Date of Birth.&amp;nbsp; I want to calculate their age and show a chart which displays the number of members in each age group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Age groups would be like 30-39, 40-49, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can calculate the age.&amp;nbsp; But no idea how to group them and build the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 19:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624763#M547555</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-09T19:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624764#M547556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a calculated dimension that uses the fonction : &lt;A name="kanchor412"&gt;&lt;/A&gt;&lt;A name="class"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;class(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;expression, interval [ , label [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Creates a classification of &lt;SPAN class="Italic"&gt;expressions&lt;/SPAN&gt;. The bin width is determined by the number set as &lt;SPAN class="Italic"&gt;interval&lt;/SPAN&gt;. The result is shown as a&amp;lt;=x&amp;lt;b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in &lt;SPAN class="Italic"&gt;label&lt;/SPAN&gt;. 0 is normally the default starting point of the classification. This can be changed by adding an &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,10 )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'20&amp;lt;=x&amp;lt;30'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,5,'value' )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'20&amp;lt;= value &amp;lt;25'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,10,'x',5 )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'15&amp;lt;=x&amp;lt;25'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;HTH,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 19:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624764#M547556</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-02-09T19:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624765#M547557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can classify your Age values in the script or in a calculated dimension, e.g. using the class() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=class(AgeField,5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create an expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct MemberField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 19:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624765#M547557</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-09T19:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624766#M547558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still not working.&amp;nbsp; The field that I used for age is returning 57 years 2 mos 5 days.&amp;nbsp; I suspect that this is not useful for what you recommended.&amp;nbsp; I think I need a field that just returns the number of years without the text.&amp;nbsp; Not sure what to use for that.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 21:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624766#M547558</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-09T21:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624767#M547559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you calculate the age? Could you post some sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 22:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624767#M547559</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-09T22:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624768#M547560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just used the age function against the birth_date field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I&amp;nbsp; have this in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;age (birth_date) AS Age_Bracket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns something like 84 years 1 mon 14 days as the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I really want something that just returns 84.&amp;nbsp; Then I can do something with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 23:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624768#M547560</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-09T23:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624769#M547561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The age() function should return the number of whole years. The age() function also requires two parameters, not 1 as you show in your example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;age (today(1), birth_date) AS Age_Bracket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 00:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624769#M547561</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-10T00:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624770#M547562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not working in my script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 01:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624770#M547562</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-10T01:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624771#M547563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your script, or better yet, your document log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 03:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624771#M547563</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-10T03:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624772#M547564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO PostgreSQL30 (XUserId is PTKHRaNOOLYIXUdNOLHB, XPassword is AAWJfQUOTbXATbEHfaIeFXNE);&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;member_id,&lt;/P&gt;&lt;P&gt;first_name,&lt;/P&gt;&lt;P&gt;last_name,&lt;/P&gt;&lt;P&gt;member_type,&lt;/P&gt;&lt;P&gt;city,&lt;/P&gt;&lt;P&gt;zipcode,&lt;/P&gt;&lt;P&gt;phone,&lt;/P&gt;&lt;P&gt;email,&lt;/P&gt;&lt;P&gt;birth_date,&lt;/P&gt;&lt;P&gt;age (birth_date) AS Age_Bracket,&lt;/P&gt;&lt;P&gt;gender,&lt;/P&gt;&lt;P&gt;sign_up_date,&lt;/P&gt;&lt;P&gt;county,&lt;/P&gt;&lt;P&gt;firm_id,&lt;/P&gt;&lt;P&gt;state&lt;/P&gt;&lt;P&gt;from members&lt;/P&gt;&lt;P&gt;Where Not (Member_type = 'M')&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 13:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624772#M547564</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-10T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624773#M547565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, you are using an SQL function, here. We were talking about the QV function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the QV functions in a preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class(Age_Int, 5) as Age_Class;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age(today(1),birth_date) as Age_Int;&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;member_id,&lt;/P&gt;&lt;P&gt;first_name,&lt;/P&gt;&lt;P&gt;last_name,&lt;/P&gt;&lt;P&gt;member_type,&lt;/P&gt;&lt;P&gt;city,&lt;/P&gt;&lt;P&gt;zipcode,&lt;/P&gt;&lt;P&gt;phone,&lt;/P&gt;&lt;P&gt;email,&lt;/P&gt;&lt;P&gt;birth_date,&lt;/P&gt;&lt;P&gt;age (birth_date) AS Age_Bracket,&lt;/P&gt;&lt;P&gt;gender,&lt;/P&gt;&lt;P&gt;sign_up_date,&lt;/P&gt;&lt;P&gt;county,&lt;/P&gt;&lt;P&gt;firm_id,&lt;/P&gt;&lt;P&gt;state&lt;/P&gt;&lt;P&gt;from members&lt;/P&gt;&lt;P&gt;Where Not (Member_type = 'M');&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 13:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624773#M547565</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-10T13:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624774#M547566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624774#M547566</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-10T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624775#M547567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for all the questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How do I sort the axis so that I have 10-20 then 20-30 then 40-50, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; How can I change the values on the axis to look like the above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-based-on-calculation/m-p/624775#M547567</guid>
      <dc:creator>rittermd</dc:creator>
      <dc:date>2014-02-10T14:29:15Z</dc:date>
    </item>
  </channel>
</rss>

