<?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 date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969039#M467530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibly approach would be to add a days to resolve field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then Count({&amp;lt;DaystoResolve={'&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vDaySet)&lt;/SPAN&gt;'}&amp;gt;}Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ID_Ticket&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 13:00:32 GMT</pubDate>
    <dc:creator>Mark_Little</dc:creator>
    <dc:date>2015-11-10T13:00:32Z</dc:date>
    <item>
      <title>Difference between date</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969036#M467527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i need to represent time how many tickets have been solved the last month, within x days (a variable called vDatSet) from support request and time to solve problem.&lt;/P&gt;&lt;P&gt;I've tried to :&lt;/P&gt;&lt;P&gt;if((date([Solution])-date([OpenTicket]))&amp;lt;=$(vDaySet),count(distinct ID_Ticket))&lt;/P&gt;&lt;P&gt;but I dont' understand how set date on last month and how match set analysis and if condition.&lt;/P&gt;&lt;P&gt;Help me pls.&lt;/P&gt;&lt;P&gt;Can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 10:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969036#M467527</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2015-11-10T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969037#M467528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(distinct &lt;/SPAN&gt;if((date([Solution])-date([OpenTicket]))&amp;lt;=$(vDaySet),ID_Ticket))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 12:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969037#M467528</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-11-10T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969038#M467529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming Solution and OpenTicket are true (numeric) date fields and vDaySet is a number, then this should work:&lt;/P&gt;&lt;P&gt;=Count(If(Solution - OpenTicket &amp;lt;= vDaySet, Distinct ID_Ticket))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 12:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969038#M467529</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-11-10T12:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969039#M467530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibly approach would be to add a days to resolve field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then Count({&amp;lt;DaystoResolve={'&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vDaySet)&lt;/SPAN&gt;'}&amp;gt;}Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ID_Ticket&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 13:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969039#M467530</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-10T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969040#M467531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that does not work, it may be that your "date" fields are actually strings and/or mat contain a date component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If()) expressions can perform poorly on large data sets, so you may want to create a derived variable, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Solution - OpenTicket As Offset,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Solution,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenTicket,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use a set expression (which should perform much better):&lt;/P&gt;&lt;P&gt;Count{&amp;lt;Offset = {"&amp;lt;=$(vDaySet)"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Distinct ID_Ticket)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more detailed help, please upload a representative sample qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 13:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date/m-p/969040#M467531</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-11-10T13:04:52Z</dc:date>
    </item>
  </channel>
</rss>

