<?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 problem ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/1123132#M520115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylvian, if you want to use more than one date field, I think that you have to use canonical calendar to do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 12:50:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-17T12:50:30Z</dc:date>
    <item>
      <title>Expression problem !</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/1123131#M520114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Hi everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I just start working on QLIK and im brand new to this community, so please expect some obvious questions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;I&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; want to build an operationnal report to follow tickets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I started to follow created/canceled tickets based on their creation date, per week.&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;Old:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;X-Asis(Bottom) -&amp;gt; Week(Creation date)&lt;/P&gt;&lt;P&gt;Expressions :&lt;/P&gt;&lt;P&gt;Number ot new tickets : count (ticket)&lt;/P&gt;&lt;P&gt;Number of canceled tickets : -count({&amp;lt;[Macro statut]={'70-NOT DONE'}&amp;gt;} Ticket)&lt;/P&gt;&lt;P&gt;(nb : it didnt work with -count(if(&lt;SPAN style="font-size: 13.3333px;"&gt;Macro statut]='70-NOT DONE', Ticket) ? )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it worked just fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since i want to mix different dates (creation date, delivery date, etc.)&amp;nbsp; in the future i decided to create a new island week date "Period"&amp;nbsp; (&lt;A href="https://community.qlikview.com/thread/39707" title="https://community.qlikview.com/thread/39707"&gt;Create Chart Dimension from Two Fields Value. | Qlik Community&lt;/A&gt; ) and use is as X asis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;New:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;X-Asis(Bottom)&lt;/SPAN&gt;: Period&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Number ot new tickets:&lt;SPAN style="font-size: 13.3333px;"&gt;count( if(Period=CreatedWeek, Ticket)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not able to count the number of canceled tickets. I tried many way of writing it like:&lt;/P&gt;&lt;P&gt;- mixing set analysis and if condition : &lt;SPAN style="font-size: 13.3333px;"&gt;-count(if(&lt;SPAN style="font-size: 13.3333px;"&gt;Period=CreatedWeek), {&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;[Macro statut]={'70-NOT DONE'}&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Ticket) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- expanding set analysis : &lt;SPAN style="font-size: 13.3333px;"&gt;-count({&amp;lt;[Macro statut]={'70-NOT DONE'}, &lt;SPAN style="font-size: 13.3333px;"&gt;Period=CreatedWeek&lt;/SPAN&gt;&amp;gt;} Ticket)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- many others combination like trying to put the if() before the count(), etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of them worked. I guess im missing something..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/1123131#M520114</guid>
      <dc:creator />
      <dc:date>2016-08-17T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problem !</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/1123132#M520115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylvian, if you want to use more than one date field, I think that you have to use canonical calendar to do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problem/m-p/1123132#M520115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-17T12:50:30Z</dc:date>
    </item>
  </channel>
</rss>

