<?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: Intervall function with set expression AND additional condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757016#M58400</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why the statement actually needs to be in double quotes? &lt;STRONG&gt;{"=FinishedTime1=StartedTime1"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since its already recognized as datefields, I wonder because shouldn't it search line by line automatically?&lt;/P&gt;&lt;P&gt;Best.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 12:15:00 GMT</pubDate>
    <dc:creator>Applicable88</dc:creator>
    <dc:date>2020-10-29T12:15:00Z</dc:date>
    <item>
      <title>Intervall function with set expression AND additional condition</title>
      <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1756985#M58390</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using a intervall function like this:&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Action={'charging'}, FinishedTime1=StartedTime1&amp;gt;}interval(FinishedTime-StartedTime,'hh:mm:ss'))&lt;/P&gt;&lt;P&gt;As you can see I want to return the average duration&amp;nbsp; (FinishedTime minus StartedTime), but only for the Action when its on 'charging' mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And additional to that it has to be the data where when its finished was on the same day as where I started it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess the two field names FinishedTime and StartedTime cannot be just put in an equation within the&amp;nbsp; setexpression?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1756985#M58390</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-10-29T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Intervall function with set expression AND additional condition</title>
      <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757003#M58394</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110549"&gt;@Applicable88&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;avg({$&amp;lt;Action={'charging'}, FinishedTime1={"=FinishedTime1=StartedTime1"}&amp;gt;}interval(FinishedTime-StartedTime,'hh:mm:ss'))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 11:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757003#M58394</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-29T11:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Intervall function with set expression AND additional condition</title>
      <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757016#M58400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why the statement actually needs to be in double quotes? &lt;STRONG&gt;{"=FinishedTime1=StartedTime1"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since its already recognized as datefields, I wonder because shouldn't it search line by line automatically?&lt;/P&gt;&lt;P&gt;Best.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757016#M58400</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-10-29T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Intervall function with set expression AND additional condition</title>
      <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757018#M58402</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110549"&gt;@Applicable88&lt;/a&gt;&amp;nbsp; This is how set analysis works. If you want to check it line by line then you may need to go with if condition like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;avg({$&amp;lt;Action={'charging'}&amp;gt;}if(FinishedTime1=StartedTime1,interval(FinishedTime-StartedTime,'hh:mm:ss')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757018#M58402</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-29T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Intervall function with set expression AND additional condition</title>
      <link>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757027#M58404</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, good to know the alternative! I got the same results. I just needed floor() function for the two Time fields, than it works out as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I see it the way you wrote it as set expression and also as if-statement is searching line by line. Only if doing something with DSE would be different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervall-function-with-set-expression-AND-additional-condition/m-p/1757027#M58404</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-10-29T12:40:01Z</dc:date>
    </item>
  </channel>
</rss>

