<?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: Getting dataset for specific month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065373#M87385</link>
    <description>&lt;P&gt;This zero'd out my data for the column but I appreciate the help.&lt;/P&gt;
&lt;P&gt;I was able to get it working by creating a variable in the load script to evaluate the date field against current month and return a 1/0 value. We just filter out all non-matched dates in the sheet column expression.&lt;/P&gt;
&lt;P&gt;In load script:&lt;/P&gt;
&lt;P&gt;If(MonthStart(&lt;SPAN&gt;[DATE_FIELD_A]&lt;/SPAN&gt;)= MonthStart(Today()),1,0) as COD_InMonth,&lt;/P&gt;
&lt;P&gt;In column expression:&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;COD_InMonth={1}&amp;gt;}&lt;SPAN&gt;[DATE_FIELD_A]&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution used was taken from '&lt;STRONG&gt;johnca&lt;/STRONG&gt;':&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-show-data-for-the-current-month-only/m-p/977793" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-show-data-for-the-current-month-only/m-p/977793&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 16:23:54 GMT</pubDate>
    <dc:creator>Archlite</dc:creator>
    <dc:date>2023-04-27T16:23:54Z</dc:date>
    <item>
      <title>Getting dataset for specific month</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065348#M87381</link>
      <description>&lt;P&gt;I have a table where one of the columns just needs to display the count for all the records that occur in the current month. However, my current expression is returning all the records that contains any date data for [DATE_FIELD_A].&lt;/P&gt;
&lt;P&gt;My current expression for this particular column is:&lt;/P&gt;
&lt;P&gt;=Count(If(Month(Today()=Month([DATE_FIELD_A])),[DATE_FIELD_A]))&lt;/P&gt;
&lt;P&gt;Logic:&lt;/P&gt;
&lt;P&gt;Select count where [DATE_FIELD_A] is = CurrentMonth&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065348#M87381</guid>
      <dc:creator>Archlite</dc:creator>
      <dc:date>2023-04-27T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dataset for specific month</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065370#M87384</link>
      <description>&lt;P&gt;Count({&amp;lt; [DATE_FIELD_A]= {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max( [DATE_FIELD_A]))) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max( [DATE_FIELD_A])))"}&amp;gt;} [DATE_FIELD_A])&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065370#M87384</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-27T16:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dataset for specific month</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065373#M87385</link>
      <description>&lt;P&gt;This zero'd out my data for the column but I appreciate the help.&lt;/P&gt;
&lt;P&gt;I was able to get it working by creating a variable in the load script to evaluate the date field against current month and return a 1/0 value. We just filter out all non-matched dates in the sheet column expression.&lt;/P&gt;
&lt;P&gt;In load script:&lt;/P&gt;
&lt;P&gt;If(MonthStart(&lt;SPAN&gt;[DATE_FIELD_A]&lt;/SPAN&gt;)= MonthStart(Today()),1,0) as COD_InMonth,&lt;/P&gt;
&lt;P&gt;In column expression:&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;COD_InMonth={1}&amp;gt;}&lt;SPAN&gt;[DATE_FIELD_A]&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution used was taken from '&lt;STRONG&gt;johnca&lt;/STRONG&gt;':&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-show-data-for-the-current-month-only/m-p/977793" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-show-data-for-the-current-month-only/m-p/977793&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-dataset-for-specific-month/m-p/2065373#M87385</guid>
      <dc:creator>Archlite</dc:creator>
      <dc:date>2023-04-27T16:23:54Z</dc:date>
    </item>
  </channel>
</rss>

