<?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: Set Analysis with Period as date dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179877#M886655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its Awesome Neelam! Thank you very much for your reply. I think your solution is correct. Even though i am getting almost 2.5% difference from my target KPI but i think that is coming from the Data Model. Have to check the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2016 17:43:38 GMT</pubDate>
    <dc:creator>BootCam</dc:creator>
    <dc:date>2016-09-14T17:43:38Z</dc:date>
    <item>
      <title>Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179868#M886646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me whats wrong with the calculation below? I am not getting values out of this calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Activation Period]=Max([Status Update Period]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;[Type Code]={'A','B','C'}, [Status Code History]={'X','Y'}&amp;gt;}[Volume]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF([Activation Period]&amp;lt;Max([Status Update Period]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;[Type Code]={'A','B','C'}, [Status Code History]={'X','Y','Z'}&amp;gt;}[Volume])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Periods are in this format: "Jan-16" for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179868#M886646</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179869#M886647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this? Can you may be provide a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179869#M886647</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-09T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179870#M886648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this in the straight table expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179870#M886648</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2016-09-09T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179871#M886649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to get the value. Might be this sorting there is no associative values. Have you check the testing. Or would you be able to provide sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179871#M886649</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179872#M886650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be possible that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Activation Period] and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Status Update Period] have different data type and if not then try to convert both to numeric format, its easy to compare numeric format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179872#M886650</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-09T17:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179873#M886651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status Code with "C5CC". Which is a cancellation of contracts. Status Code "AAAA" is Activation of Contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; If a contract Activate and cancelled in the Same Year &amp;amp; Same month then we ignore that as a contract and&lt;/P&gt;&lt;P&gt;dont include that as revenue. But if it Activated and Cancelled in the same Year But in different month we consider&lt;/P&gt;&lt;P&gt;That Contract as revenue for the Activation month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If a contract activated(AAAA) on July 29th 2016 and cancelled(C5CC) on August 1st 2016, then we&lt;/P&gt;&lt;P&gt;Consider revenue for this contract for the month of July 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried to do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Derive the Activation Date from Status Update Date based on the Status Code (AAAA) and&lt;/P&gt;&lt;P&gt;Last Update Date from the Status Update Date based on taking the Max(Status Update Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Then Made Activation Period like Jul-2016 and Take the Last status period Jul-2016. Then Compare if the&lt;/P&gt;&lt;P&gt;Activation Period equals or Less than the Activation Period. If the Activation Period = Last Update period&lt;/P&gt;&lt;P&gt;then Dont consider revenue. But when Activation Period is less than Last update period then Consider Revenue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Activation Period]=Max([Last Update Period]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;[Customer Type Code]={'X','Y','Z'}, [Status Code History]={'*'}-{C5CC}&amp;gt;}[Price]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF([Activation Period]&amp;lt;Max([Last Update Period]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;[Customer Type Code]={'X','Y','Z'}&amp;gt;}[Price])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where I am doing wrong. Also please see the attach file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179873#M886651</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2016-09-13T19:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179874#M886652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my last response. I provide a sample of my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179874#M886652</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2016-09-13T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179875#M886653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neelam, They both are in the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179875#M886653</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2016-09-13T20:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179876#M886654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put this calculation in the script.&lt;/P&gt;&lt;P&gt;Try creating a flag If Year(Contract Activation Date) = Year(Contract Cancelled date) and Month(Contract Activation Date) = Month(Contract Cancelled date) then 1 else 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in front end you can use this flag in your set analysis.&lt;/P&gt;&lt;P&gt;Revenue = Sum({&amp;lt;Flag = {0}&amp;gt;} Revenue Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide the sample data if you need more clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179876#M886654</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-14T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179877#M886655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its Awesome Neelam! Thank you very much for your reply. I think your solution is correct. Even though i am getting almost 2.5% difference from my target KPI but i think that is coming from the Data Model. Have to check the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179877#M886655</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2016-09-14T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Period as date dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179878#M886656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 18:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Period-as-date-dimension/m-p/1179878#M886656</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-14T18:11:00Z</dc:date>
    </item>
  </channel>
</rss>

