<?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 Set Analysis Count If? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269082#M496196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I attempted this as well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to show how many tickets were opened on todays date.&amp;nbsp; So assigned date for each ticket.&amp;nbsp; I converted =num(assigneddate) AS &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;ASSIGNEDDATE_NUM.&amp;nbsp; vToday is also defined in my load script as a num value.&amp;nbsp; See both text boxes below to view values.&amp;nbsp; TICKETID is just as the name applies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;IMG alt="qvdate.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11133_qvdate.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 19:22:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-09T19:22:52Z</dc:date>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269075#M496189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I would like this equation translated into Set Analysis.&amp;nbsp; This should be fairly straight forward but all the examples show X field is equal to 'X, X.' I am unable to find the correct syntax for an if statement with a comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;If today’s &amp;lt; greater than the assigned to date count the number of tickets regardless ofany other selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=count(if(num(vToday)&amp;lt;num(ASSIGNEDDATE), (TICKETID)))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any other questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 18:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269075#M496189</guid>
      <dc:creator />
      <dc:date>2012-02-09T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269076#M496190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;ASSIGNEDDATE={"&amp;gt;$(vToday)"}&amp;gt; TICKETID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 18:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269076#M496190</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-02-09T18:20:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269077#M496191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did not work but I think you are on the right track.&amp;nbsp; Just a matter of getting the syntax correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 18:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269077#M496191</guid>
      <dc:creator />
      <dc:date>2012-02-09T18:35:16Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269078#M496192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what vToday is, so try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;count({$&amp;lt;ASSIGNEDDATE={"&amp;gt;$(=today())"}&amp;gt; TICKETID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 18:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269078#M496192</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-02-09T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269079#M496193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vToday was just a variable made for today.&amp;nbsp; I tried today() still does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269079#M496193</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:02:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269080#M496194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Unlike "if", set analysis is sensitive to the date format.&amp;nbsp; To work, both ASSIGNEDDATE and today() (or vToday) must be in the same format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269080#M496194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T19:08:41Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269081#M496195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it should work.&amp;nbsp; If you need more help, it will be easier if you can upload a small, sample qvw of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269081#M496195</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-02-09T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269082#M496196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I attempted this as well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to show how many tickets were opened on todays date.&amp;nbsp; So assigned date for each ticket.&amp;nbsp; I converted =num(assigneddate) AS &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;ASSIGNEDDATE_NUM.&amp;nbsp; vToday is also defined in my load script as a num value.&amp;nbsp; See both text boxes below to view values.&amp;nbsp; TICKETID is just as the name applies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;IMG alt="qvdate.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11133_qvdate.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269082#M496196</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269083#M496197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now taken assigneddate in my load script this:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;floor(num(ASSIGNEDDATE)) AS ASSIGNEDDATE_NUM,&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This now converts all assigned to dates to be equal to todays date.&amp;nbsp; Just playing the the syntax again in set analysis.&amp;nbsp;&amp;nbsp; Will post if I get it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269083#M496197</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269084#M496198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You need to use ASSIGNEDDATE_NUM in your set instead of ASSIGNEDDATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269084#M496198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T19:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269085#M496199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempt 1:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=count({1&amp;lt;ASSIGNEDDATE_NUM={'vToday'}&amp;gt;} TICKETID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempt 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=count({1&amp;lt;ASSIGNEDDATE_NUM={vToday}&amp;gt;} TICKETID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works if I do this: (but I would like it dynamic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=count({1&amp;lt;ASSIGNEDDATE_NUM={'40948'}&amp;gt;} TICKETID)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269085#M496199</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269086#M496200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'$(vToday)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269086#M496200</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269087#M496201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; No need for if.&amp;nbsp; Or youcan use if witout set.&amp;nbsp; You have to use the example from Karl, but with &lt;/P&gt;ASSIGNEDDATE_NUM&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: #636363; font-size: 12px;"&gt;count({$&amp;lt;ASSIGNEDDATE_NUM={"&amp;gt;$(vToday"}&amp;gt; TICKETID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269087#M496201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T19:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count If?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269088#M496202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Federico and Michael. Both solutions work.&amp;nbsp; Beleow is what I ended up using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=count({1&amp;lt;ASSIGNEDDATE_NUM={$(vToday)}&amp;gt;} TICKETID)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-If/m-p/269088#M496202</guid>
      <dc:creator />
      <dc:date>2012-02-09T19:48:54Z</dc:date>
    </item>
  </channel>
</rss>

