<?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 Concat strings and formula in count if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-strings-and-formula-in-count-if-condition/m-p/1853120#M1215748</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have access to a database that cannot be modified with a column giving the week number as follows "2018 W1", "2021 W40", etc etc&lt;/P&gt;
&lt;P&gt;I want to create a KPI giving the distinct numbers of event generated during the previous week and I do not know the syntax to do it :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure :&amp;nbsp;Count({&amp;lt;[Event Creation Date.Calendar.Week]={"year(today()) &amp;amp; ' W' &amp;amp; week(today())-1"}&amp;gt;} distinct [Event ID])&lt;/P&gt;
&lt;P&gt;And the output result is always 0&lt;/P&gt;
&lt;P&gt;Can you please help ?&lt;/P&gt;
&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 13:15:43 GMT</pubDate>
    <dc:creator>Frinolav</dc:creator>
    <dc:date>2021-10-28T13:15:43Z</dc:date>
    <item>
      <title>Concat strings and formula in count if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-strings-and-formula-in-count-if-condition/m-p/1853120#M1215748</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have access to a database that cannot be modified with a column giving the week number as follows "2018 W1", "2021 W40", etc etc&lt;/P&gt;
&lt;P&gt;I want to create a KPI giving the distinct numbers of event generated during the previous week and I do not know the syntax to do it :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure :&amp;nbsp;Count({&amp;lt;[Event Creation Date.Calendar.Week]={"year(today()) &amp;amp; ' W' &amp;amp; week(today())-1"}&amp;gt;} distinct [Event ID])&lt;/P&gt;
&lt;P&gt;And the output result is always 0&lt;/P&gt;
&lt;P&gt;Can you please help ?&lt;/P&gt;
&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 13:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-strings-and-formula-in-count-if-condition/m-p/1853120#M1215748</guid>
      <dc:creator>Frinolav</dc:creator>
      <dc:date>2021-10-28T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Concat strings and formula in count if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-strings-and-formula-in-count-if-condition/m-p/1853273#M1215755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It does not seem to like trying to subtract 1 from the week &amp;amp; then bolt together as a string ... could you try taking off 7 days &amp;amp; taking&amp;nbsp; the week?&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;[Event Creation Date.Calendar.Week]={"$(=year(today())&amp;amp; ' W' &amp;amp; week(today()-7))"}&amp;gt;} distinct [Event ID])&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 19:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-strings-and-formula-in-count-if-condition/m-p/1853273#M1215755</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-10-28T19:00:18Z</dc:date>
    </item>
  </channel>
</rss>

