<?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: Difference between Dates in the Same Field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Difference-between-Dates-in-the-Same-Field/m-p/1608638#M45172</link>
    <description>&lt;P&gt;So this is a capture of a data selection. This is filtered for only one item and customer number. In the data load editor, I set Date(Previous(ship_date), 'mm/dd/yyyy') as 'Prev'. however, It is obviously not correct. The total shown at the top of the DAYS_UNTIL_NEXT_SHIPMENT is the average and is correct. However, I can not take the average of the measure and use it as its own measure to put into a different table.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 16:01:26 GMT</pubDate>
    <dc:creator>anon</dc:creator>
    <dc:date>2019-08-01T16:01:26Z</dc:date>
    <item>
      <title>Difference between Dates in the Same Field</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-Dates-in-the-Same-Field/m-p/1608632#M45169</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following fields:&lt;/P&gt;&lt;P&gt;ITEM_NO,&lt;/P&gt;&lt;P&gt;CUSTOMER_NO,&lt;/P&gt;&lt;P&gt;QUANTITY_SHIPPED,&lt;/P&gt;&lt;P&gt;and SHIP_DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to create a measure that will show allow me to calculate the average and standard deviation of the number of days between the ship date and the previous ship date. The problems I have faced are as follows: When filtered by ITEM_NO and CUSTOMER_NO, the SHIP_DATE are irregular. i.e. the last most recent date could be 7/18/2019 and the second most recent could be 6/11/2019. Thus, I would want the difference between these dates to be 37. I was able to create a measure named DAYS_UNTIL_NEXT_SHIPMENT that is&amp;nbsp;ABOVE(TOTAL(SHIP_DATE))- SHIP_DATE which works very well. However, I am not able to take the average and standard deviation of this measure to put into a different table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any feedback would be greatly appreciated.&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>Thu, 01 Aug 2019 15:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-Dates-in-the-Same-Field/m-p/1608632#M45169</guid>
      <dc:creator>anon</dc:creator>
      <dc:date>2019-08-01T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Dates in the Same Field</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-Dates-in-the-Same-Field/m-p/1608638#M45172</link>
      <description>&lt;P&gt;So this is a capture of a data selection. This is filtered for only one item and customer number. In the data load editor, I set Date(Previous(ship_date), 'mm/dd/yyyy') as 'Prev'. however, It is obviously not correct. The total shown at the top of the DAYS_UNTIL_NEXT_SHIPMENT is the average and is correct. However, I can not take the average of the measure and use it as its own measure to put into a different table.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 16:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-Dates-in-the-Same-Field/m-p/1608638#M45172</guid>
      <dc:creator>anon</dc:creator>
      <dc:date>2019-08-01T16:01:26Z</dc:date>
    </item>
  </channel>
</rss>

