<?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: Implement the dynamic script logic to get the order details. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613566#M596753</link>
    <description>&lt;P&gt;There is no way for us to know that you changed the value, unless you create your own historical table. Qlik will only see the values currently existing in your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to write something that remembers the previous value, and that value isn't in your data, you'll have to save the data in Qlik (to a QVD) and compare the new data to that each time. I highly recommend not using this approach - data should be stored in the source system, not in Qlik.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:59:17 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2019-08-18T12:59:17Z</dc:date>
    <item>
      <title>Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613553#M596750</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have one requirement that is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;a little bit&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;tricky. I want you&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;guys&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to help me to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Provided the below data source details. In the data source if order date is null then quantity should be changed time to time. If order date filled by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;a user&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;while entering the order details then order id and&amp;nbsp; quantity should be only first records it should not change. One order id should be one record only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Sample Data source:&amp;nbsp;&lt;/U&gt; &lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17215iBDFB353DE7116B64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;Sample Output :&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_2.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17216iBB5928CC5698A02F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_2.png" alt="clipboard_image_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; &amp;nbsp;I tried this but its not working dynamically. I would like to request please help me to do this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Irshad Ansari&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613553#M596750</guid>
      <dc:creator>mcaahmad93</dc:creator>
      <dc:date>2024-11-16T02:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613554#M596751</link>
      <description>&lt;P&gt;You should be able to get this done by using FirstSortedValue(). I'm not sure what your exact target output is, but you can probably figure out how to modify this pretty easily if you need to. Order dates were replaced with numeric dates to make it easier for me to finish this quickly...&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Order id, Quantity, Order_Date&lt;BR /&gt;1, 2,&lt;BR /&gt;1, 3,&lt;BR /&gt;1, 4, 20190601&lt;BR /&gt;1, 6, 20190701&lt;BR /&gt;2, 7, 20190801&lt;BR /&gt;3, 10,&lt;BR /&gt;4, 10, 20190701 ];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data2:&lt;BR /&gt;NOCONCATENATE Load [Order id],&lt;BR /&gt;FirstSortedValue(Quantity,alt(Order_Date,99999999)) as Quantity, /* If there are no order dates, we want the last value even though it's null, so we replace nulls with a value that's always higher than our dates. If this were regular dates, we could use Today()+9999 instead */&lt;BR /&gt;FirstSortedValue(Order_Date, Order_Date) as Order_Date&lt;BR /&gt;Resident Data&lt;BR /&gt;Group by [Order id];&lt;/P&gt;&lt;P&gt;Drop table Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613554#M596751</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2019-08-18T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613563#M596752</link>
      <description>&lt;P&gt;Thank you very much for your valuable time.&lt;/P&gt;&lt;P&gt;Almost,&amp;nbsp; Your logic has covered my requirement. But I have excel data source and if i am changing the quantity&amp;nbsp; its getting change for both filled and non filed date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Note: &lt;FONT color="#808080"&gt;&lt;SPAN&gt;The filled order&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;date, quantity&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;should not change if any change happening in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;the data source&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Data source:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17218i527237EC73B4D98B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17219iD8EA069A978A33BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Irshad Ansari&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613563#M596752</guid>
      <dc:creator>mcaahmad93</dc:creator>
      <dc:date>2019-08-18T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613566#M596753</link>
      <description>&lt;P&gt;There is no way for us to know that you changed the value, unless you create your own historical table. Qlik will only see the values currently existing in your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to write something that remembers the previous value, and that value isn't in your data, you'll have to save the data in Qlik (to a QVD) and compare the new data to that each time. I highly recommend not using this approach - data should be stored in the source system, not in Qlik.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613566#M596753</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2019-08-18T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613572#M596754</link>
      <description>&lt;P&gt;Thank you for suggestion.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think you have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;understood&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;my actual requirement. Here, I have attached the updated 'QVD' and source data. If you&amp;nbsp; will help me to do by this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;way, then&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it will be very helpful for me.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="correction  alternate"&gt;My&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;request to you please help me do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613572#M596754</guid>
      <dc:creator>iahmadmca</dc:creator>
      <dc:date>2019-08-18T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613574#M596755</link>
      <description>&lt;P&gt;I don't think this request is feasible. The value could have changed 50 times in the first day, before you ever loaded data into QlikView, so you'll never know what the original value was. There is literally no way for us to know, based on the data available, what the original value was.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613574#M596755</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2019-08-18T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Implement the dynamic script logic to get the order details.</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613579#M596756</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I am good&amp;nbsp; to go with your suggestion and script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;just now, I added the one more order id 3 and quantity 12&amp;nbsp; with null order date. It is coming null but it should come&amp;nbsp; 12 quantity. Is it possible? it yes then i can close this loop.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17223iEA0A068EFEBE953B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17224i894B700A66A81C72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 14:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-the-dynamic-script-logic-to-get-the-order-details/m-p/1613579#M596756</guid>
      <dc:creator>iahmadmca</dc:creator>
      <dc:date>2019-08-18T14:12:26Z</dc:date>
    </item>
  </channel>
</rss>

