<?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: Equating the date fields based on current selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514661#M1122703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt;'s answer should work, but I think the use of P() should also work and it's a bit shorter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Flag={1},&lt;/P&gt;&lt;P&gt;CompletedYear=P(CommonYear),&lt;/P&gt;&lt;P&gt;CompletedMonth=P(CommonMonth),&lt;/P&gt;&lt;P&gt;CompletedWeek=P(CommonWeek),&lt;/P&gt;&lt;P&gt;CompletedDay=P(CommonDay)&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;TaskId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 18:20:12 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-01-15T18:20:12Z</dc:date>
    <item>
      <title>Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514659#M1122701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have a requirement wherein I am supposed to display the count of tasks that got submitted and complete in the time frame as per the current selections i.e., in case i have selected the Common year as 2013,I would want to display the tasks that got submitted and also completed in 2013 .Suppose if i select month as jan then the tasks that got submitted and completed during jan irrespective of the year must get displayed.I did try to acheive the same using the below expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CompletedYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=GetFieldSelections(CommonYear))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CompletedMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=GetFieldSelections(CommonMonth))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CompletedWeek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=GetFieldSelections(CommonWeek))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CompletedDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=GetFieldSelections(CommonDay))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TaskId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue is that incase i do not make selection on any of the above fields like if i do not select day.The expresion does not give me the desired result.So please help me optimize the above expression&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 11:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514659#M1122701</guid>
      <dc:creator />
      <dc:date>2014-01-15T11:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514660#M1122702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't make selections, the function GetFieldSelections() returns null.&amp;nbsp; If you want this to work without selections, try using concat():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Flag={1},&lt;/P&gt;&lt;P&gt;CompletedYear={$(=concat(CommonYear,','))},&lt;/P&gt;&lt;P&gt;CompletedMonth={$(=concat(CommonMonth,','))},&lt;/P&gt;&lt;P&gt;CompletedWeek={$(=concat(CommonWeek,','))},&lt;/P&gt;&lt;P&gt;CompletedDay={$(=concat(CommonDay,','))}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;TaskId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514660#M1122702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-15T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514661#M1122703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt;'s answer should work, but I think the use of P() should also work and it's a bit shorter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Flag={1},&lt;/P&gt;&lt;P&gt;CompletedYear=P(CommonYear),&lt;/P&gt;&lt;P&gt;CompletedMonth=P(CommonMonth),&lt;/P&gt;&lt;P&gt;CompletedWeek=P(CommonWeek),&lt;/P&gt;&lt;P&gt;CompletedDay=P(CommonDay)&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;TaskId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514661#M1122703</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-15T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514662#M1122704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks Michael the solution that you have provided is giving me the desired results.Can you please explain the use of concat function here and the logic behind I dont seem to understand the logic used,it would be very helpful if you would guide me on the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 04:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514662#M1122704</guid>
      <dc:creator />
      <dc:date>2014-01-16T04:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514663#M1122705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicloe,&lt;/P&gt;&lt;P&gt;The approach you have suggested is working well.I am unable to figure what is P() and the logic behind the code.So could you please explain the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 04:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514663#M1122705</guid>
      <dc:creator />
      <dc:date>2014-01-16T04:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514664#M1122706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for P( ) definition. P( ) refers to set of possible values. You can refer the set Analysis section for more details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 04:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514664#M1122706</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2014-01-16T04:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514665#M1122707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompletedYear={$(=concat(CommonYear,','))}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here concat function concatenates the values selected on frontend for CommonYear with ',' and returns it to the CompletedYear&lt;/P&gt;&lt;P&gt;If you select 2012 and 2013 then it returns - 2012,2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompletedYear=P(CommonYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P() function returns all the possible CompletedYear values of selected CommonYear value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nuthan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 05:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514665#M1122707</guid>
      <dc:creator />
      <dc:date>2014-01-16T05:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514666#M1122708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anushree, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think &lt;A href="https://community.qlik.com/qlik-users/69658"&gt;Brindlogcool&lt;/A&gt; and &lt;A href="https://community.qlik.com/qlik-users/139193"&gt;nuthan kumar&lt;/A&gt; did a good job explaining P(), so you should be able to figure it out from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please mark helpful and correct answers in order to help others find solutions to their problems as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514666#M1122708</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T14:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Equating the date fields based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514667#M1122709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nuthan for a very good explaination&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 04:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equating-the-date-fields-based-on-current-selections/m-p/514667#M1122709</guid>
      <dc:creator />
      <dc:date>2014-01-20T04:07:25Z</dc:date>
    </item>
  </channel>
</rss>

