<?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: Select a value on the basis of SystemDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355626#M416103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny...that worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 12:31:25 GMT</pubDate>
    <dc:creator>yashcena</dc:creator>
    <dc:date>2017-07-10T12:31:25Z</dc:date>
    <item>
      <title>Select a value on the basis of SystemDate</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355624#M416101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three columns as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each &lt;STRONG&gt;Release Filter&lt;/STRONG&gt; has &lt;STRONG&gt;Release Titles&lt;/STRONG&gt; and each Release Title has a user-entered &lt;STRONG&gt;SystemDate&lt;/STRONG&gt; (not computer's system date) as shown in pivot chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that when the app is opened, then whatever is the date today, the corresponding &lt;STRONG&gt;Release Filter&lt;/STRONG&gt; should be selected by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when the app is opened on 2017-05-05, PI10 2017.04 should be selected.&lt;/P&gt;&lt;P&gt;when it is opened on 2017-05-15, PI11 2017.08 should be selected by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Release Filter&lt;/STRONG&gt;, I have created a trigger to make the selection on document open and I have used the following expression:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;[Release Filter]={"$(=subfield(concat([Release Filter], '|'), '|', 1))"},[System Date]={"$(=vToday)"}&amp;gt;}[Release Filter])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(vToday=Date(Today(),'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no &lt;STRONG&gt;Release Filter&lt;/STRONG&gt; is getting selected. Is this expression correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the &lt;STRONG&gt;Release Filter &lt;/STRONG&gt;selection is made for today, then I have to show the following things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These would also follow the same logic i.e. all three values should be shown for the date when app is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example, on 2017-05-05, Current &lt;STRONG&gt;Release Title&lt;/STRONG&gt; would be May 2017 Major, Release Title Start Date would be 2017-02-04 and Release Title End Date would be 2017-05-05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 2017-05-15, Current &lt;STRONG&gt;Release Title &lt;/STRONG&gt;would be Aug 2017 Major, &lt;SPAN style="font-size: 13.3333px;"&gt;Release Title Start Date would be 2017-05-06 and Release Title End Date would be 2017-08-04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For &lt;STRONG&gt;Release Title, &lt;/STRONG&gt;I have used the following expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=only({&amp;lt;[Release Filter]={"$(=subfield(concat([Release Filter], '|'), '|', 1))"},[System Date]={"$(=vToday)"}&amp;gt;}[Release Title])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This expression is working fine. When I make any &lt;STRONG&gt;Release Filter &lt;/STRONG&gt;selection, then the corresponding &lt;STRONG&gt;Release Title &lt;/STRONG&gt;gets selected (on the basis of &lt;STRONG&gt;SystemDate&lt;/STRONG&gt;). But the trigger to select the &lt;STRONG&gt;Release Filter &lt;/STRONG&gt;by default is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can use the same logic to show the start and end dates but first, the selection of &lt;STRONG&gt;Release Filter &lt;/STRONG&gt;should be made.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope I have made my requirement clear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;YASH&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355624#M416101</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-07-10T12:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select a value on the basis of SystemDate</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355625#M416102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Only({&amp;lt;[System Date]={"$(=vToday)"}&amp;gt;}[Release Filter])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355625#M416102</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-10T12:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select a value on the basis of SystemDate</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355626#M416103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny...that worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-value-on-the-basis-of-SystemDate/m-p/1355626#M416103</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-07-10T12:31:25Z</dc:date>
    </item>
  </channel>
</rss>

