<?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: Extract 12 values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251943#M1185040</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;See the attached sample file it is for Months top first values and its value see the Table Months First Values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is based on your months first values and when your data is based on 12 month it shows first values of perticular month like 12 months, also i suggest if your table has Month field then the second table on which you calculate First value get the months value from this table it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any type of table you can get this data like Pivot, Straight, Table Box&amp;nbsp; but it will depend how you show the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Oct 2011 18:29:39 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-10-16T18:29:39Z</dc:date>
    <item>
      <title>Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251939#M1185033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with three columns, but over a milion rows. THe columns are: SequenceNumber, Date, SequenceValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a bar chart where I will have in axis X - Sequence numbers and Sequencevalues as value of the chart. BUt, the problem is that I need first sequence value in every month. So if I have sample data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22222, 2011-01-01, 500&lt;/P&gt;&lt;P&gt;22223, 2011-01-15, 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22224, 2011-02-01, 500&lt;/P&gt;&lt;P&gt;22225, 2011-02-10, 500&lt;/P&gt;&lt;P&gt;22226, 2011-02-20, 500&lt;/P&gt;&lt;P&gt;22227, 2011-03-02, 500&lt;/P&gt;&lt;P&gt;22228, 2011-03-06, 500&lt;/P&gt;&lt;P&gt;22229, 2011-03-18, 500&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to extract only sequences 22222, 22224, 22227 and put their values in a chart, because they are the first ones in first three months? I guess that "the only" thing that I have to do is to extract SequenceNumbers, because values will came bu default, but the problem is to write an expression that takes only 12 values based on months. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 10:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251939#M1185033</guid>
      <dc:creator />
      <dc:date>2011-10-16T10:49:04Z</dc:date>
    </item>
    <item>
      <title>Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251940#M1185035</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;&amp;nbsp;&amp;nbsp; You can use the firstsortedvalue() function to get the first value depending on your sort criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For more search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Will post an example tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 11:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251940#M1185035</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-16T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251941#M1185036</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;From my side i think you have to use FirstValue( ) function to calculate first value in the month in your table for the Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any type of table you can get this data like Pivot, Straight, Table Box&amp;nbsp; but it will depend how you show the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 14:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251941#M1185036</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-16T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251942#M1185038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable name &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Variable1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(Date,12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in dimension take &lt;/P&gt;&lt;P&gt;SequenceNumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one calculated dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Variable1) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;,Date)&amp;nbsp; and make spress null on this dimension&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;take Sequence value in expression( if this not work then take sum(Sequence Value)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;see the attached file for you referenec e&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 17:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251942#M1185038</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-16T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251943#M1185040</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;See the attached sample file it is for Months top first values and its value see the Table Months First Values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is based on your months first values and when your data is based on 12 month it shows first values of perticular month like 12 months, also i suggest if your table has Month field then the second table on which you calculate First value get the months value from this table it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any type of table you can get this data like Pivot, Straight, Table Box&amp;nbsp; but it will depend how you show the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 18:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251943#M1185040</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-16T18:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251944#M1185042</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;if you don't need to care about selection state, you could use FirstSortedValue in the script, like already mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do need to care about selection state, you could use this as expression in any chart to filter the first Sequencenumber per Month:&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;sum({&amp;lt;SequenceNumber = {'$(=concat(aggr(FirstSortedValue(SequenceNumber,Date), MonthstartDate),chr(39)&amp;amp;','&amp;amp;chr(39) ))'}&amp;gt;} SequenceValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined MonthstartDate in the script, please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 18:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251944#M1185042</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-16T18:58:22Z</dc:date>
    </item>
    <item>
      <title>Extract 12 values</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251945#M1185044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use:&lt;/P&gt;&lt;P&gt;monthstart(date) as name,&lt;/P&gt;&lt;P&gt;aggr([Sequence numbers], name) as name1.&lt;/P&gt;&lt;P&gt;by doing this you will get only the sequence numbers at the month start.&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 05:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-12-values/m-p/251945#M1185044</guid>
      <dc:creator />
      <dc:date>2011-10-17T05:16:05Z</dc:date>
    </item>
  </channel>
</rss>

