<?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: Dynamic Change Value according rolling dates with user selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725628#M723700</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24291"&gt;@rakeshkumar1890&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option in the interface :&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;OrderNo,PlanDate,Seq, AvailableDate&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if(OrderNo&amp;lt;&amp;gt;above(total OrderNo) or AvailableDate=above(total AvailableDate),'Same',
if(AvailableDate&amp;gt; above(total AvailableDate),'A','B'))&lt;/LI-CODE&gt;&lt;P&gt;I left the old and the new output&amp;nbsp; to see the difference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37056iE1781C70E70811AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Selected Date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 736px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37057i24D2FBBFEA08AA75/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached qlikview file&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 09:03:12 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-07-07T09:03:12Z</dc:date>
    <item>
      <title>Dynamic Change Value according rolling dates with user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725286#M723693</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Need your help to find out the solution of my query.&lt;/P&gt;&lt;P&gt;Scenario is based on date by user selection, Sample file attached&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; As you see on sample file, on orderno 100, started Availabledate is "2019-12-16" which should be always output "Same". If user selected between the dates hence it should be also be output "same", because at that time the Availabledate would be started date.&lt;/P&gt;&lt;P&gt;2. if the Availbaledate is greater than previous availabledate then output should be "A"&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. if the Availbaledate is Less&amp;nbsp; than previous availabledate then output should be "B" else (Currentavailable date is equal to previousdate then) "Same"&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725286#M723693</guid>
      <dc:creator>rakeshkumar1890</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Change Value according rolling dates with user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725306#M723697</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24291"&gt;@rakeshkumar1890&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the example below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 354px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37006i8C6B5EC9AF10DB18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the script :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
load *,
if(OrderNo&amp;lt;&amp;gt;peek(OrderNo) or Date#(AvailableDate,'YYYY-MM-DD')=previous(Date#(AvailableDate,'YYYY-MM-DD')),'Same',if(Date#(AvailableDate,'YYYY-MM-DD')&amp;gt;previous(Date#(AvailableDate,'YYYY-MM-DD')),'A','B')) as output inline [
OrderNo,PlanDate,Seq,AvailableDate
100,2019-12-16,1,2019-12-16
100,2019-12-17,2,2019-12-18
100,2019-12-19,4,2019-12-31
100,2019-12-17,5,2019-12-31
200,2019-12-17,1,2019-01-16
200,2019-12-30,2,2019-12-31
300,2020-01-07,1,2020-01-01
300,2020-01-07,2,2020-01-30
300,2020-01-07,3,2020-01-10
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 435px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37007i19CD4C709A2BA219/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 11:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725306#M723697</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-06T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Change Value according rolling dates with user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725574#M723699</link>
      <description>&lt;P&gt;Thanks Taoufiq for the quick response.&lt;/P&gt;&lt;P&gt;But here is one problem, if I did this on script side it would not be dynamic,&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose user selected Availabledate "2019-12-18" for OrderNo "100", then in this case output should be "Same" not "A", because it is the starting date.&lt;/P&gt;&lt;P&gt;Can we do something from expression side?&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725574#M723699</guid>
      <dc:creator>rakeshkumar1890</dc:creator>
      <dc:date>2020-07-07T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Change Value according rolling dates with user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725628#M723700</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24291"&gt;@rakeshkumar1890&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option in the interface :&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;OrderNo,PlanDate,Seq, AvailableDate&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if(OrderNo&amp;lt;&amp;gt;above(total OrderNo) or AvailableDate=above(total AvailableDate),'Same',
if(AvailableDate&amp;gt; above(total AvailableDate),'A','B'))&lt;/LI-CODE&gt;&lt;P&gt;I left the old and the new output&amp;nbsp; to see the difference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37056iE1781C70E70811AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Selected Date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 736px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37057i24D2FBBFEA08AA75/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached qlikview file&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 09:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1725628#M723700</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-07T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Change Value according rolling dates with user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1727979#M723701</link>
      <description>&lt;P&gt;Thanks Taoufiq&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Change-Value-according-rolling-dates-with-user-selection/m-p/1727979#M723701</guid>
      <dc:creator>rakeshkumar1890</dc:creator>
      <dc:date>2020-07-15T11:35:31Z</dc:date>
    </item>
  </channel>
</rss>

