<?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: Expression conversion to Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1743474#M56986</link>
    <description>&lt;P&gt;This is what I came up with&lt;/P&gt;&lt;P&gt;(if(DT_0_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_1_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_2_TIME_DIFF_CAT&amp;gt;0,1,0) +if(DT_3_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_4_TIME_DIFF_CAT&amp;gt;0,1,0) +if(DT_5_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_6_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_7_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_8_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_9_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_10_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_11_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_12_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_13_TIME_DIFF_CAT&amp;gt;0,1,0)) as #DepartureDelay,&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 08:36:27 GMT</pubDate>
    <dc:creator>Broly</dc:creator>
    <dc:date>2020-09-14T08:36:27Z</dc:date>
    <item>
      <title>Expression conversion to Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1733052#M55955</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to ask you whether it is possible to change this expression to a set analysis? Also, would it be possible maybe to change it to a load script?&lt;/P&gt;&lt;P&gt;I need this to put it to a KPI object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time(if(AT_14_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_14) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_14) &amp;lt; num(date(today())+ 0.5))) ,sum(AT_14_TIME_DIFF),0)+&lt;BR /&gt;if(AT_1_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_1) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_1) &amp;lt; num(date(today())+ 0.5))),sum(AT_1_TIME_DIFF),0) +&lt;BR /&gt;if(AT_2_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_2) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_2) &amp;lt; num(date(today())+ 0.5))),sum(AT_2_TIME_DIFF),0) +&lt;BR /&gt;if(AT_3_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_3) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_3) &amp;lt; num(date(today())+ 0.5))),sum(AT_3_TIME_DIFF),0) +&lt;BR /&gt;if(AT_4_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_4) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_4) &amp;lt; num(date(today())+ 0.5))),sum(AT_4_TIME_DIFF),0) +&lt;BR /&gt;if(AT_5_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_5) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_5) &amp;lt; num(date(today())+ 0.5))),sum(AT_5_TIME_DIFF),0) +&lt;BR /&gt;if(AT_6_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_6) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_6) &amp;lt; num(date(today())+ 0.5))),sum(AT_6_TIME_DIFF),0) +&lt;BR /&gt;if(AT_7_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_7) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_7) &amp;lt; num(date(today())+ 0.5))),sum(AT_7_TIME_DIFF),0) +&lt;BR /&gt;if(AT_8_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_8) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_8) &amp;lt; num(date(today())+ 0.5))),sum(AT_8_TIME_DIFF),0) +&lt;BR /&gt;if(AT_9_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_9) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_9) &amp;lt; num(date(today())+ 0.5))),sum(AT_9_TIME_DIFF),0) +&lt;BR /&gt;if(AT_10_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_10) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_10) &amp;lt; num(date(today())+ 0.5))),sum(AT_10_TIME_DIFF),0) +&lt;BR /&gt;if(AT_11_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_11) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_11) &amp;lt; num(date(today())+ 0.5))),sum(AT_11_TIME_DIFF),0) +&lt;BR /&gt;if(AT_12_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_12) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_12) &amp;lt; num(date(today())+ 0.5))),sum(AT_12_TIME_DIFF),0) +&lt;BR /&gt;if(AT_13_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_13) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_13) &amp;lt; num(date(today())+ 0.5))),sum(AT_13_TIME_DIFF),0)&lt;/P&gt;&lt;P&gt;,'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 10:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1733052#M55955</guid>
      <dc:creator>Broly</dc:creator>
      <dc:date>2020-08-04T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression conversion to Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1733054#M55956</link>
      <description>&lt;P&gt;It will be better to move it to load script with below approach&lt;/P&gt;&lt;P&gt;create a Field in script like below/ I have covered only two condition for example but you need to include all conditions. You can include '0' in else&amp;nbsp; for last if statement.&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;AT_14_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_14) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_14) &amp;lt; num(date(today())+ 0.5))),&lt;STRONG&gt;AT_14_TIME_DIFF&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;if(.....,&lt;/P&gt;&lt;P&gt;If(......,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(AT_1_TIME_DIFF_CAT&amp;gt;0 and ((num(MAPPED_AT_1) &amp;gt; num(date(today())+ 0.27083333)) and (num(MAPPED_AT_1) &amp;lt; num(date(today())+ 0.5))),&lt;STRONG&gt;AT_1_TIME_DIFF&lt;/STRONG&gt;,0)&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt; as Total_Time&lt;/P&gt;&lt;P&gt;FROM Source;&lt;/P&gt;&lt;P&gt;Now you can simply use below formula&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;time(sum(Total_Time))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 10:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1733054#M55956</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-04T10:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression conversion to Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1743474#M56986</link>
      <description>&lt;P&gt;This is what I came up with&lt;/P&gt;&lt;P&gt;(if(DT_0_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_1_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_2_TIME_DIFF_CAT&amp;gt;0,1,0) +if(DT_3_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_4_TIME_DIFF_CAT&amp;gt;0,1,0) +if(DT_5_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_6_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_7_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_8_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_9_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_10_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_11_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_12_TIME_DIFF_CAT&amp;gt;0,1,0) + if(DT_13_TIME_DIFF_CAT&amp;gt;0,1,0)) as #DepartureDelay,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-conversion-to-Set-Analysis/m-p/1743474#M56986</guid>
      <dc:creator>Broly</dc:creator>
      <dc:date>2020-09-14T08:36:27Z</dc:date>
    </item>
  </channel>
</rss>

