<?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: Displaying Field Values in TextBox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460483#M1165517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign a sequence number to the runs in order. You can do that with RecNo() during the load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() as RunId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='Baseline is from '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; only({1&amp;lt;RunId={$(=RangeMax(max(RunId)-12,1))}&amp;gt;}[Run Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; ' to '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; only({1&amp;lt;RunId={$(=max(RunId)-1)}&amp;gt;}[Run Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 20:41:01 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-10-02T20:41:01Z</dc:date>
    <item>
      <title>Displaying Field Values in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460482#M1165516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="306"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="163"&gt;Run Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="55"&gt;Run Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="88"&gt;No. of Runners&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;May 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,952&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;June 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;6/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;3,075&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;July 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;7/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;4,724&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;August 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;8/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;September 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;9/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,977&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;October 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;10/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,072&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;November 2011 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;11/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,156&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;January 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,593&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;February 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,070&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;March 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;3/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,151&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;April 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,244&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;May 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;June 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;6/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;July 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;7/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;627&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;August 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;8/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;483&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;September 2012 Run&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;9/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to calculate a "baseline," whatever Run Name a user selects in a list box, I have QV average the No. of Runners of the 12 *previous* Run Name(s) (and not including the selected Run Name).&amp;nbsp; In otherwords, if they choose "June 2012 Run," QV averages the No. of Runners from the Run Name of May 2011 Run to May 2012 Run.&amp;nbsp; Likewise, if they choose "August 2011 Run,"&amp;nbsp; No. of Runners will be averaged from Run Name "May 2011 Run" to "July 2011 Run."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, I have all of my aggregation functions working properly, however I want to *display* the Run Names contained in the baseline within a &lt;STRONG&gt;Text Box&lt;/STRONG&gt; saying (in the Case of choosing "August 2011 Run"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Baseline is calculated from the "May 2011 Run" to "July 2011 Run."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of other twists:&lt;/P&gt;&lt;P&gt;1. The average should not exceed the 12 "Run Name." In other words, in my average calculations, if user selects "September 2012 Run" the baseline average will be from "August 2011 Run" to "August 2012 Run"&lt;/P&gt;&lt;P&gt;2. Notice that there is no "December 2011" run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 18:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460482#M1165516</guid>
      <dc:creator />
      <dc:date>2012-10-02T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Field Values in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460483#M1165517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign a sequence number to the runs in order. You can do that with RecNo() during the load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() as RunId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='Baseline is from '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; only({1&amp;lt;RunId={$(=RangeMax(max(RunId)-12,1))}&amp;gt;}[Run Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; ' to '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; only({1&amp;lt;RunId={$(=max(RunId)-1)}&amp;gt;}[Run Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460483#M1165517</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-10-02T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Field Values in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460484#M1165518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; This is exactly what I needed.&amp;nbsp; This alone taught me a ton about RANGEMAX and ONLY. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 21:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Field-Values-in-TextBox/m-p/460484#M1165518</guid>
      <dc:creator />
      <dc:date>2012-10-02T21:12:25Z</dc:date>
    </item>
  </channel>
</rss>

