<?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 Dynamic initial state: How to define? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367711#M136732</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;I have a report which creates new weekly data every week (sales for week 1, week2, week3 etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the user clicks "initial state" in the top menu bar, always the latest week should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are using Ajax Client, it is not possible to use OnOpen event when the report is being opened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to create a dynamic inital state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 13:52:15 GMT</pubDate>
    <dc:creator>hugmarcel</dc:creator>
    <dc:date>2012-05-24T13:52:15Z</dc:date>
    <item>
      <title>Dynamic initial state: How to define?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367711#M136732</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;I have a report which creates new weekly data every week (sales for week 1, week2, week3 etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the user clicks "initial state" in the top menu bar, always the latest week should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are using Ajax Client, it is not possible to use OnOpen event when the report is being opened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to create a dynamic inital state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 13:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367711#M136732</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2012-05-24T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic initial state: How to define?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367712#M136733</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;I don't know of any way to make an initial state dynamic, but you could use a Select in Field action on the button or text box that the user clicks. Set the field Weeks to =Max(Weeks) (adjust as required).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367712#M136733</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-24T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Dynamic initial state: How to define?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367713#M136734</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;thank you for this proposal. The problem is that the amount of data is massive in the report and an initial selection of the latest week is really needed and must therefore be forced. It should never happen that no week has been selected (but this happens when the user clicks the initial state button but not the user-button).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367713#M136734</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2012-05-24T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic initial state: How to define?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367714#M136735</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;I assume that your concern is that some of the objects render slowly or fail i not week is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case, you have a couple of approaches that you can try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use conditional calculation or conditional display of the objects, so that the problem objects are not calculated unless a single week is selected.&lt;/LI&gt;&lt;LI&gt;Use "Select one value only" for the week. This may not result in the latest week, but at least your model/objects won't fail.&lt;/LI&gt;&lt;LI&gt;If you are only concerned about the latest wee, load only that week.&lt;/LI&gt;&lt;LI&gt;Use set expressions in your objects so that they only display for max(Week). This will be the latest week if nothing is selected, the selected week if one week is selected, or the most recent of the selected week if more than one is selected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope those help&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-initial-state-How-to-define/m-p/367714#M136735</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-24T14:58:55Z</dc:date>
    </item>
  </channel>
</rss>

