<?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 Problem with formula on different QlikView versions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641169#M732453</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm working on a formula and the problem is that I can see the results in a table, but there is a problem when someone opens the same documents and the formula doesn't work. The formula is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(
    Aggr(NODISTINCT Count(watson_conversation_id), watson_conversation_id)=1, 0,
    Interval( Aggr( NODISTINCT FirstSortedValue(DISTINCT time, - time) , watson_conversation_id) 
              - Aggr( NODISTINCT FirstSortedValue(DISTINCT time, time) , watson_conversation_id), 'ss')*24*60*60)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with qlikview 12 and the QlikView version where this calculated measure is&amp;nbsp;Versión 11.20.13206.0 SR13 64-bit Edition (x64)&lt;/P&gt;&lt;P&gt;Any idea, maybe a function which is not compatible?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:05:14 GMT</pubDate>
    <dc:creator>danimelo1</dc:creator>
    <dc:date>2024-11-16T02:05:14Z</dc:date>
    <item>
      <title>Problem with formula on different QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641169#M732453</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm working on a formula and the problem is that I can see the results in a table, but there is a problem when someone opens the same documents and the formula doesn't work. The formula is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(
    Aggr(NODISTINCT Count(watson_conversation_id), watson_conversation_id)=1, 0,
    Interval( Aggr( NODISTINCT FirstSortedValue(DISTINCT time, - time) , watson_conversation_id) 
              - Aggr( NODISTINCT FirstSortedValue(DISTINCT time, time) , watson_conversation_id), 'ss')*24*60*60)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with qlikview 12 and the QlikView version where this calculated measure is&amp;nbsp;Versión 11.20.13206.0 SR13 64-bit Edition (x64)&lt;/P&gt;&lt;P&gt;Any idea, maybe a function which is not compatible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641169#M732453</guid>
      <dc:creator>danimelo1</dc:creator>
      <dc:date>2024-11-16T02:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula on different QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641188#M732454</link>
      <description>&lt;P&gt;I don't think anything major changed between versions, but it could be a bug in a particular version.... by either ways, I would say that you at least simplify you expression to this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Aggr(NODISTINCT 
  If(Count(watson_conversation_id) = 1, 0, Interval(FirstSortedValue(DISTINCT time, - time) - FirstSortedValue(DISTINCT time, time), 'ss')*24*60*60)
, watson_conversation_id)&lt;/LI-CODE&gt;&lt;P&gt;Having multiple Aggr() is not a good idea and should be avoided if possible&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 12:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641188#M732454</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-30T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula on different QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641404#M732455</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; for your reply and your advice about the formula. I'm going to try with some versions and check if it's about a bug or what.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1641404#M732455</guid>
      <dc:creator>danimelo1</dc:creator>
      <dc:date>2019-10-30T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula on different QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1644283#M732456</link>
      <description>&lt;P&gt;Daniel, just adding a couple of Design Blog posts that may be somewhat useful to you in addition to Sunny's comments:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-nodistinct-qualifier-and-the-Aggr-function/ba-p/1535332" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-nodistinct-qualifier-and-the-Aggr-function/ba-p/1535332&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Consider marking Sunny's post using the Accept as Solution button if his expression change did work, otherwise, consider returning and posting what your final solution was and mark that if you do something different.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1644283#M732456</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-11-07T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula on different QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1644385#M732457</link>
      <description>&lt;P&gt;Thanks for your advice&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;. Finally I came up with this formula and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Interval(
           AGGR(NODISTINCT Max(Time(Mid(time, 12, 8), 'hh:mm:ss')) - Min(Time(Mid(time, 12, 8), 'hh:mm:ss')), watson_conversation_id),
           'ss'
          ) *24*3600&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you pointed, maybe the problem was having multiple Aggr functions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-on-different-QlikView-versions/m-p/1644385#M732457</guid>
      <dc:creator>danimelo1</dc:creator>
      <dc:date>2019-11-07T15:34:56Z</dc:date>
    </item>
  </channel>
</rss>

