<?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 case when with aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/case-when-with-aggregation/m-p/1639935#M47699</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was wondering if someone would be able to help me . I want to create the following Case statement in Qliksense.&lt;/P&gt;&lt;P&gt;emp_id ,&lt;/P&gt;&lt;P&gt;"case when a.START_DT BETWEEN '08NOV2019'D AND '15NOV2019'D and a.apo_ID &amp;lt;&amp;gt; '' then 1 else 0 end as nov_08_15chk_appointments,"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically there&amp;nbsp; is no record for appointment(no Apo_id)&amp;nbsp; for some employee on some particular date that i can find through above query in sas and then i have to aggregate the employee level info on region wise, i tried the below script but i am not getting the correct output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (START_DT &amp;gt;= '($vWeek_S1)' and START_DT &amp;lt;= '($vchk2)' and ACTV_ID &amp;lt;&amp;gt;'', 1,0) as week1%,&lt;BR /&gt;// if (START_DT &amp;gt;= '($vWeek_S2)' and START_DT &amp;lt;= '($vchk3)' and ACTV_ID &amp;lt;&amp;gt;'', 1,0 ) as week2%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;saugandh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:48:30 GMT</pubDate>
    <dc:creator>Saugandh</dc:creator>
    <dc:date>2024-11-16T19:48:30Z</dc:date>
    <item>
      <title>case when with aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/case-when-with-aggregation/m-p/1639935#M47699</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was wondering if someone would be able to help me . I want to create the following Case statement in Qliksense.&lt;/P&gt;&lt;P&gt;emp_id ,&lt;/P&gt;&lt;P&gt;"case when a.START_DT BETWEEN '08NOV2019'D AND '15NOV2019'D and a.apo_ID &amp;lt;&amp;gt; '' then 1 else 0 end as nov_08_15chk_appointments,"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically there&amp;nbsp; is no record for appointment(no Apo_id)&amp;nbsp; for some employee on some particular date that i can find through above query in sas and then i have to aggregate the employee level info on region wise, i tried the below script but i am not getting the correct output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (START_DT &amp;gt;= '($vWeek_S1)' and START_DT &amp;lt;= '($vchk2)' and ACTV_ID &amp;lt;&amp;gt;'', 1,0) as week1%,&lt;BR /&gt;// if (START_DT &amp;gt;= '($vWeek_S2)' and START_DT &amp;lt;= '($vchk3)' and ACTV_ID &amp;lt;&amp;gt;'', 1,0 ) as week2%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;saugandh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/case-when-with-aggregation/m-p/1639935#M47699</guid>
      <dc:creator>Saugandh</dc:creator>
      <dc:date>2024-11-16T19:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: case when with aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/case-when-with-aggregation/m-p/1640099#M47706</link>
      <description>&lt;P&gt;I don't know the content of the variables, but the dollar sign is not well positioned.&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;STRIKE&gt;'(&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;$&lt;/FONT&gt;&lt;/STRONG&gt;vWeek_S1)'&lt;/STRIKE&gt;&amp;nbsp;'&lt;FONT color="#339966"&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/FONT&gt;(vWeek_S1)'&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 16:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/case-when-with-aggregation/m-p/1640099#M47706</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-26T16:33:12Z</dc:date>
    </item>
  </channel>
</rss>

