<?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 How to use set analysis under set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559607#M441177</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data" style="width: 125px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8569iFF0D660DD7EA52FC/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Data" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Total Issues by Date" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8570i2478E431113C3186/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Total Issues by Date" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Total Issues by Date&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Required Output" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8571i7FB5AB6067D50507/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Required Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Required Output&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Desired output" style="width: 131px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8572i1C3BCF523B2201B7/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Desired output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Desired output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am trying to&amp;nbsp;find the number of Id's that&amp;nbsp;has&amp;nbsp;"Open Date"&amp;nbsp;in past 12 months from the "Date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I&amp;nbsp;am having&amp;nbsp;three fields&amp;nbsp;&amp;nbsp;Date, Open Date and Id. Date&amp;nbsp;is when I extract the data, Open&amp;nbsp;Date is when issue is opened and Id is an issue.&lt;/P&gt;&lt;P&gt;I have Date as dimension and trying to count the number of issues that has been opened in last one year. In this example, I have a date 1/1/2018, so I need to display the count of issues opened from 1/1/2017. The another date is 2/1/2018 and I need to display the count of issues opened from 2/1/2017.&lt;/P&gt;&lt;P&gt;Not sure where I am doing wrong. Please find the attached Spread sheet and QlikView document and please help me with this.&lt;/P&gt;&lt;P&gt;Expression I am using -&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff"&gt;Count&lt;/FONT&gt;({&amp;lt;&lt;FONT color="#800000"&gt;[Open Date]&lt;/FONT&gt; = {&lt;FONT color="#800000"&gt;"&amp;gt;=$(=Addmonths(max(Date),-12))"&lt;/FONT&gt;}&amp;gt;}&lt;FONT color="#800000"&gt;Id&lt;/FONT&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:05:23 GMT</pubDate>
    <dc:creator>varunreddy</dc:creator>
    <dc:date>2024-11-16T04:05:23Z</dc:date>
    <item>
      <title>How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559607#M441177</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data" style="width: 125px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8569iFF0D660DD7EA52FC/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Data" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Total Issues by Date" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8570i2478E431113C3186/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Total Issues by Date" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Total Issues by Date&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Required Output" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8571i7FB5AB6067D50507/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Required Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Required Output&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Desired output" style="width: 131px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8572i1C3BCF523B2201B7/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Desired output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Desired output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am trying to&amp;nbsp;find the number of Id's that&amp;nbsp;has&amp;nbsp;"Open Date"&amp;nbsp;in past 12 months from the "Date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I&amp;nbsp;am having&amp;nbsp;three fields&amp;nbsp;&amp;nbsp;Date, Open Date and Id. Date&amp;nbsp;is when I extract the data, Open&amp;nbsp;Date is when issue is opened and Id is an issue.&lt;/P&gt;&lt;P&gt;I have Date as dimension and trying to count the number of issues that has been opened in last one year. In this example, I have a date 1/1/2018, so I need to display the count of issues opened from 1/1/2017. The another date is 2/1/2018 and I need to display the count of issues opened from 2/1/2017.&lt;/P&gt;&lt;P&gt;Not sure where I am doing wrong. Please find the attached Spread sheet and QlikView document and please help me with this.&lt;/P&gt;&lt;P&gt;Expression I am using -&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff"&gt;Count&lt;/FONT&gt;({&amp;lt;&lt;FONT color="#800000"&gt;[Open Date]&lt;/FONT&gt; = {&lt;FONT color="#800000"&gt;"&amp;gt;=$(=Addmonths(max(Date),-12))"&lt;/FONT&gt;}&amp;gt;}&lt;FONT color="#800000"&gt;Id&lt;/FONT&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559607#M441177</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2024-11-16T04:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559625#M441178</link>
      <description>&lt;P&gt;Try it with: Count({&amp;lt; Id = {"=[Open Date]&amp;gt;=addmonths(Date,-12)"}&amp;gt;} Id)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 14:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559625#M441178</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-21T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559631#M441179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can add a flag field like this:&lt;BR /&gt;DATA:&lt;BR /&gt;LOAD Date,&lt;BR /&gt;Id,&lt;BR /&gt;[Open Date],&lt;BR /&gt;If(num(Date - [Open Date]) &amp;lt;= 365, 1, 0) as Flag_Dif&lt;BR /&gt;FROM ...;&lt;BR /&gt;&lt;BR /&gt;And use the follow expresion: Count({&amp;lt;Flag_Dif = {1}&amp;gt;}Id)&lt;BR /&gt;&lt;BR /&gt;I hope solve your problem.&lt;BR /&gt;&lt;BR /&gt;Dan.</description>
      <pubDate>Thu, 21 Mar 2019 14:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559631#M441179</guid>
      <dc:creator>daanciorea</dc:creator>
      <dc:date>2019-03-21T14:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559648#M441181</link>
      <description>&lt;P&gt;In this instance Set Analysis is only calculating once on the Open Date field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can use the same logic in a conditional statement.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Count(
IF([Open Date] &amp;gt;= AddMonths(Date,-12)
,Id))&lt;/PRE&gt;&lt;P&gt;This will give you what you expect&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Marcus's reply will also work just fine as well.&amp;nbsp; I find this to be a little simpler &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 15:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559648#M441181</guid>
      <dc:creator>Andrew_Incite</dc:creator>
      <dc:date>2019-03-21T15:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559672#M441184</link>
      <description>&lt;P&gt;Thanks Dan for your quick reply !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 15:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559672#M441184</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2019-03-21T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559673#M441185</link>
      <description>&lt;P&gt;Thanks Marcus for the quick reply !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 15:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559673#M441185</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2019-03-21T15:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use set analysis under set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559674#M441186</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 15:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-set-analysis-under-set-analysis/m-p/1559674#M441186</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2019-03-21T15:50:21Z</dc:date>
    </item>
  </channel>
</rss>

