<?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: Interval between dates not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462197#M98940</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/150570"&gt;@Tauseef&lt;/a&gt;&amp;nbsp;it says the expression is OK, but it doesn't bring me any values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how the data is displaying in the app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Buck_1-1718283072087.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167902i6CD18D500DDE8F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Buck_1-1718283072087.png" alt="Chris_Buck_1-1718283072087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am entering the function in the Open &amp;amp; Overdue/Long Overdue column, which I am creating as a dimension.&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, 13 Jun 2024 12:52:38 GMT</pubDate>
    <dc:creator>Chris_Buck</dc:creator>
    <dc:date>2024-06-13T12:52:38Z</dc:date>
    <item>
      <title>Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462130#M98926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am new to Qliksense, so I'm hoping I am not repeating a question that has already been asked.&lt;/P&gt;
&lt;P&gt;I currently extract the data from Qliksense and enter the this formula in excel =DATEDIF("Date",TODAY(),"M")&lt;/P&gt;
&lt;P&gt;"Date" is a cell where date is in DD-MM-YYYY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want this information available in Qliksense do I don't need to extract it, so I created a dimension and entered the following&lt;/P&gt;
&lt;P&gt;Interval((date#(([Date Initiated],'DD-MM-YYYY')) -(date#(Today(),'DD-MM-YYYY')),"M")&lt;/P&gt;
&lt;P&gt;But I am getting an error. How do I fix it?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462130#M98926</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T10:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462155#M98928</link>
      <description>&lt;P&gt;Too much brackets, conversions and other syntax. Just try:&lt;/P&gt;
&lt;P&gt;interval(&lt;SPAN&gt;[Date Initiated] - today(), 'M') as X&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If it doesn't returned the expected value just use parts of it to find those ones which have no respectively a different result, maybe:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;date([Date Initiated]) as Y&lt;BR /&gt;[Date Initiated] - today() as Z&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462155#M98928</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462174#M98932</link>
      <description>&lt;P&gt;Thank you the following did not work, no data showed&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;interval(&lt;/SPAN&gt;&lt;SPAN&gt;[Date Initiated] - today(), 'M')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How would I rewrite it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462174#M98932</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462176#M98933</link>
      <description>&lt;P&gt;What return the parts? Like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;date([Date Initiated]) as Y&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[Date Initiated] as YY&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462176#M98933</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462178#M98934</link>
      <description>&lt;P&gt;I'm unsure what you mean?&lt;/P&gt;
&lt;P&gt;I entered&amp;nbsp;&lt;SPAN&gt;interval this (&lt;/SPAN&gt;&lt;SPAN&gt;[Date Initiated] - today(), 'M')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462178#M98934</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462186#M98936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/302605"&gt;@Chris_Buck&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Check this:&lt;BR /&gt;Interval(date#([Date Initiated], 'DD-MM-YYYY') - Today(), 'M')&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462186#M98936</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-13T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462195#M98939</link>
      <description>&lt;P&gt;You need to check the data and their types (numbers or strings) and their formatting at first - if they are known you could address them properly.&lt;/P&gt;
&lt;P&gt;I just looked in the help and interval() doesn't supports months/years as returns else only days and times. This means you couldn't use it. Alternatively approaches may be something like:&lt;/P&gt;
&lt;P&gt;round((Date1 - Date2) / 30, 0.1) as X&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;(year(Date1) *12 + month(Date1)) -&amp;nbsp;(year(Date2) *12 + month(Date2))&amp;nbsp; as Y&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462195#M98939</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462197#M98940</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/150570"&gt;@Tauseef&lt;/a&gt;&amp;nbsp;it says the expression is OK, but it doesn't bring me any values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how the data is displaying in the app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Buck_1-1718283072087.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167902i6CD18D500DDE8F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Buck_1-1718283072087.png" alt="Chris_Buck_1-1718283072087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am entering the function in the Open &amp;amp; Overdue/Long Overdue column, which I am creating as a dimension.&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, 13 Jun 2024 12:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462197#M98940</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462204#M98942</link>
      <description>&lt;P&gt;Your date-field is left-aligned which hints that's not a real date else a string. To convert a string to a number you will need to specify the correct format-pattern and ensuring that the interpretation-variables are equally set to them. In your case the conversion may look like:&lt;/P&gt;
&lt;P&gt;date(date#(&lt;SPAN&gt;[Date Initiated], 'MMM DD, YYYY'), 'DD-MM-YYYY') as&amp;nbsp;[Date Initiated]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and such measurement should be done ones within the script.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462204#M98942</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T13:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462211#M98944</link>
      <description>&lt;P&gt;A lot of jargon for me&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you saying then that I should enter:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;date(date#(&lt;/SPAN&gt;&lt;SPAN&gt;[Date Initiated], 'MMM DD, YYYY'), 'DD-MM-YYYY')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;in the field expression?&lt;/P&gt;
&lt;P&gt;Will it give me the months? I need the how many months value between the dates like the excel function&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;=DATEDIF(Cell Reference,TODAY(),"M")&lt;/EM&gt; does&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462211#M98944</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462233#M98946</link>
      <description>&lt;P&gt;FYI:&lt;/P&gt;
&lt;P&gt;If I put&amp;nbsp;=[Date Initiated]-Today()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do get values, see pic below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Buck_0-1718286014300.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167912i4F69567242DA6DD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Buck_0-1718286014300.png" alt="Chris_Buck_0-1718286014300.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what I need is those values to be in months, I hope I am making sense&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462233#M98946</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462234#M98947</link>
      <description>&lt;P&gt;No, it won't return the months else it is aimed to get a real date as basis for everything else. A real date is a number - starting with 1 on the 01-01-1900 and each day from it will be add 1 to it (any formatting is only for an easier readability).&lt;/P&gt;
&lt;P&gt;Only with a real date you will be able to derive years/months and so on from it and to add n days/periods and/or to compare a date with &amp;gt;= or &amp;lt;= against another one. Therefore it's the basic-work which should be done ones within the script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462234#M98947</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462274#M98952</link>
      <description>&lt;P&gt;I'm unsure if you saw the reply above yours. But if I put&amp;nbsp;=[Date Initiated]-Today()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do get values, see pic below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Buck_0-1718291873149.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167918i48CA54D6730CA0A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Buck_0-1718291873149.png" alt="Chris_Buck_0-1718291873149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what I need is those values to be in months. What do I put the expression as?&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, 13 Jun 2024 15:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462274#M98952</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-13T15:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462277#M98953</link>
      <description>&lt;P&gt;It's the difference in days. I assume you won't show them in this direction as negative values which could be easily reversed and then dividing it by 30 days and applying an appropriate rounding, maybe like:&lt;/P&gt;
&lt;P&gt;floor((&lt;SPAN&gt;Today() -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Date Initiated]) / 30)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;floor() is rounding down - ceil() would round up and if you want to show digits instead of integers then add the wanted ones to the rounding, like: floor(Value, 0.1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2462277#M98953</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-13T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between dates not working</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2464184#M99087</link>
      <description>&lt;P&gt;Thank you so much Marcus! That worked a treat&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 10:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-dates-not-working/m-p/2464184#M99087</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-06-20T10:26:35Z</dc:date>
    </item>
  </channel>
</rss>

