<?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: Chart with x-axis autonumbering 1 to x in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020664#M921560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help too. I marked the other item as the solution, but it was close between the pair of you. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 13:47:45 GMT</pubDate>
    <dc:creator>drollinson</dc:creator>
    <dc:date>2016-04-27T13:47:45Z</dc:date>
    <item>
      <title>Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020658#M921554</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;&lt;SPAN style="font-size: 13.3333px;"&gt;Imagine I have multiple libraries I'm monitoring over a month. &lt;/SPAN&gt;I want to present a chart showing, say, time spent in the libraries by individual visitor. The chart would have [TimeSpent] on the y-axis, and the x-axis would be visitorsequencenumber (first visitor on left and last off to the right).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my query/load script I have created two sequence fields. The first gives a sequence id for visits to an individual library; the second gives a sequence id for the entire dataset (libsequenceid and sequenceid).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;NB for reference, visitors arriving at the same time in two or more libraries on a certain day are then ordered by their ID number. So overall the order in which data is sorted is first by date/time arrived and then by visitorid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using either of these sequence ids as the dimension works well if all I'm doing is presenting the chart for one library or for the entire dataset for a set time.&lt;/P&gt;&lt;P&gt;However, if I enable selections via list boxes because I want to be able to look at two libraries together, or just a particular date range, then the x-axis numbering no longer runs from 1 to x, but with the id numbers which match that range (e.g. 7, 11, 12, 19, 31, 58).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I would like is rather than use one of my loaded sequence IDs, I would like the results to autonumber with the first visitor based on current selections being presented as 1, the second as 2, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking Synthetic Dimensions may help here, but I'm struggling with getting it to work. Can anyone help, please?&lt;/P&gt;&lt;P&gt;I'll upload a test file for information.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020658#M921554</guid>
      <dc:creator>drollinson</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020659#M921555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as your calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(RowNo(), LIBSEQUENCEID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122776_Capture.PNG" style="height: 384px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020659#M921555</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-26T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020660#M921556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌you could also use the rank() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020660#M921556</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-04-26T20:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020661#M921557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that the aggr() function will sort the dimension values by load order by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence,&lt;/P&gt;&lt;P&gt;=Aggr(RowNo(), SEQUENCEID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will not create necessarily create rowno = 1 for the smallest SEQUENCEID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With latest QlikView versions, you can use structured parameter to get this sorted&lt;/P&gt;&lt;P&gt;=Aggr(RowNo(), (SEQUENCEID, (NUMERIC, ASCENDING)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using QV11.20, you may need to take care that your SEQUENCEID are correctly sorted in load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the sample with added SEQUENCEID to the bar chart to demonstrate the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-04-26 22_25_03-QlikView x64 - [C__Users_Stefan_Downloads_LibraryTest (1).qvw].png" class="jive-image image-1" src="/legacyfs/online/122785_2016-04-26 22_25_03-QlikView x64 - [C__Users_Stefan_Downloads_LibraryTest (1).qvw].png" style="height: 455px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020661#M921557</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-26T20:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020662#M921558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you are using 11.20 and don't want to reorder your SEQUENCEIDs, you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Rank(-(DATEVISIT+TIMEVISIT),4,2), SEQUENCEID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. rank by lowest timestamp to identify the first visitors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020662#M921558</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-26T20:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020663#M921559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version of QV is still 11.20 so the suggestion of ensuring my data is sorted correctly when loading and then &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;using a calculated dimension of &lt;STRONG&gt;=Aggr(RowNo(), SEQUENCEID)&lt;/STRONG&gt; was the one which worked for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Much appreciated!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020663#M921559</guid>
      <dc:creator>drollinson</dc:creator>
      <dc:date>2016-04-27T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with x-axis autonumbering 1 to x</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020664#M921560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help too. I marked the other item as the solution, but it was close between the pair of you. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-x-axis-autonumbering-1-to-x/m-p/1020664#M921560</guid>
      <dc:creator>drollinson</dc:creator>
      <dc:date>2016-04-27T13:47:45Z</dc:date>
    </item>
  </channel>
</rss>

