<?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 Next and Prev Button for moving through an incomplete Set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458102#M568207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a "Next" and "Prev" Button to move through subsets of a range.&amp;nbsp; Range is based off field called SEGMENT.&amp;nbsp; SEGMENT can have values of 1 - 32, but sometimes there are missing SEGMENTS within the range.&amp;nbsp; I have a Chart, with X-Axis of SEGMENT, that can be configured to display between 1 - 4 segments at a time utilizing variable vSegmentInterval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "Next" Button seems to work perfectly regardless of number of segments displayed -- even in cases of missing Segments.&amp;nbsp; What follows is the expression I am utilizing for my "Next" Button.&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: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;gt;=' &amp;amp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+1) &amp;amp; '&amp;lt;=' &amp;amp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vSegmentInterval&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&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;What I can't seem to figure out is the correct expression for my "Prev" Button.&amp;nbsp; At best I can get "Prev" working when I am only displaying 1 segment at a time, but even then, if there is a missing segment, as soon as I hit the missing one when I select "Prev" all my selections for other fields seem to get corrupted.&amp;nbsp; Seems to me this should be a simple Expression, but I am at a loss &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 15:04:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-26T15:04:08Z</dc:date>
    <item>
      <title>Next and Prev Button for moving through an incomplete Set</title>
      <link>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458102#M568207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a "Next" and "Prev" Button to move through subsets of a range.&amp;nbsp; Range is based off field called SEGMENT.&amp;nbsp; SEGMENT can have values of 1 - 32, but sometimes there are missing SEGMENTS within the range.&amp;nbsp; I have a Chart, with X-Axis of SEGMENT, that can be configured to display between 1 - 4 segments at a time utilizing variable vSegmentInterval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "Next" Button seems to work perfectly regardless of number of segments displayed -- even in cases of missing Segments.&amp;nbsp; What follows is the expression I am utilizing for my "Next" Button.&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: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;gt;=' &amp;amp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+1) &amp;amp; '&amp;lt;=' &amp;amp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vSegmentInterval&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&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;What I can't seem to figure out is the correct expression for my "Prev" Button.&amp;nbsp; At best I can get "Prev" working when I am only displaying 1 segment at a time, but even then, if there is a missing segment, as soon as I hit the missing one when I select "Prev" all my selections for other fields seem to get corrupted.&amp;nbsp; Seems to me this should be a simple Expression, but I am at a loss &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 15:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458102#M568207</guid>
      <dc:creator />
      <dc:date>2012-10-26T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Next and Prev Button for moving through an incomplete Set</title>
      <link>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458103#M568208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To Clarify, in the below example the box represents the range of values in field SEGMENT I want to display in my chart.&amp;nbsp; "Next" and "Prev" Button should move the set in the box up or down the sequence -- note that there are missing values in the range.&amp;nbsp; Assumption in this example is vSegmentInterval = 4.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="24299" class="jive-image" alt="range.bmp" src="https://community.qlik.com/legacyfs/online/24299_range.bmp" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 15:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458103#M568208</guid>
      <dc:creator />
      <dc:date>2012-10-26T15:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Next and Prev Button for moving through an incomplete Set</title>
      <link>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458104#M568209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On looking at this again I now believe my "Next" Button Expression is incorrect as well.&amp;nbsp; Although it is taking me to the next set of SEGMENTS, it is actually deselecting the previous SEGMENTS, rather than just moving my window to display the next set.&amp;nbsp; Next and Prev Button should only be a rolling window over the selected set of SEGMENTS, it should not be deselecting any values.&amp;nbsp; Is this even doable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work similar to scrolling.&amp;nbsp; Reason for this implementation is I have layered bar charts that must scroll in unisom; as there is no Qlikview built in methodology to tie the X-Axis from multiple charts together I had to resort to this implementation.&amp;nbsp; In addition to the "Prev" and "Next" Buttons I have a Slider based off of the common X-Axis.&amp;nbsp; It works slightly better than my Next and Prev Buttons, but it also gets confused when the slider hits a missing SEGMENT and like the Next and Prev Buttons is also selecting and deselecting SEGMENTS to accomplish the scroll rather than providing a moving window over the SEGMENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lew Goldstein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 13:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458104#M568209</guid>
      <dc:creator />
      <dc:date>2012-10-29T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Next and Prev Button for moving through an incomplete Set</title>
      <link>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458105#M568210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Digging through other Discussions I found an Expression I was able to leverage that works for my "Prev Button" when an empty set exists in the date range:&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: #0000ff; font-size: 8pt;"&gt;ISNULL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATA_TS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=max({1&amp;lt;DATA_TS={"&amp;lt;$(=max(DATA_TS))"}&amp;gt;} DATA_TS))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DISKAVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATA_TS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATA_TS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1)&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit I don't totally follow the logic here, but it works; except in cases when multiple consecutive empty sets. Hoping to get better understanding of this expression so I can make it work for "Next Button" as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 17:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-and-Prev-Button-for-moving-through-an-incomplete-Set/m-p/458105#M568210</guid>
      <dc:creator />
      <dc:date>2012-11-12T17:54:03Z</dc:date>
    </item>
  </channel>
</rss>

