<?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: Make a bar chart just showing only for this current year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2013588#M83783</link>
    <description>&lt;P&gt;add below criteria to your existing expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Datefield&lt;/STRONG&gt;={"&amp;gt;=$(=Date(YearStart( today() ),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&amp;lt;=&lt;SPAN&gt;$(=Date(YearEnd( today()&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&lt;/SPAN&gt;"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Datefield&lt;/STRONG&gt;&amp;nbsp; with the actual datefield name in your datamodel&lt;/P&gt;
&lt;P&gt;replace&amp;nbsp;&lt;STRONG&gt;YYYY-MM-DD&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;with the date format as in your date field&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 09:05:33 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-12-07T09:05:33Z</dc:date>
    <item>
      <title>Make a bar chart just showing only for this current year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2013440#M83759</link>
      <description>&lt;DIV id="tinyMceEditorkiansin_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9f1eb169-6e24-4bad-b42f-0662c794de43.jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95568iE1F6EFCB51871CE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9f1eb169-6e24-4bad-b42f-0662c794de43.jpg" alt="9f1eb169-6e24-4bad-b42f-0662c794de43.jpg" /&gt;&lt;/span&gt;G&lt;/P&gt;
&lt;P&gt; Good day !&lt;BR /&gt;I have one chart which is "Sales overview by Period" , and I want it to show the current year , which is from 202301 - 202312. But there is one "open" (yellow color) postpone to "202510" , but I only want this chart to show from 202301 - 202312, do you have any script advise to remove 202510 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorkiansin_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="458fdcdc-b4d4-4819-b312-310e5432c044.jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95569i7344420733A55ABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="458fdcdc-b4d4-4819-b312-310e5432c044.jpg" alt="458fdcdc-b4d4-4819-b312-310e5432c044.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; this is my current script for "Open" as above.&lt;/P&gt;
&lt;P&gt;Kindly help for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance !!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 02:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2013440#M83759</guid>
      <dc:creator>kiansin</dc:creator>
      <dc:date>2022-12-07T02:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Make a bar chart just showing only for this current year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2013588#M83783</link>
      <description>&lt;P&gt;add below criteria to your existing expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Datefield&lt;/STRONG&gt;={"&amp;gt;=$(=Date(YearStart( today() ),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&amp;lt;=&lt;SPAN&gt;$(=Date(YearEnd( today()&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;),'&lt;STRONG&gt;YYYY-MM-DD&lt;/STRONG&gt;'))&lt;/SPAN&gt;"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Datefield&lt;/STRONG&gt;&amp;nbsp; with the actual datefield name in your datamodel&lt;/P&gt;
&lt;P&gt;replace&amp;nbsp;&lt;STRONG&gt;YYYY-MM-DD&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;with the date format as in your date field&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2013588#M83783</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-07T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Make a bar chart just showing only for this current year</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2014040#M83812</link>
      <description>&lt;P&gt;G'day &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162654"&gt;@kiansin&lt;/a&gt;, I have a different method to achieve this type of outcome.&lt;/P&gt;
&lt;P&gt;I create a flag in the load script on each row of data, something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales:
load SaleDate
   , if( year( SaleDate ) = 2023, 1, 0 ) as CurYear
   , Amount
resident SaleTable;&lt;/LI-CODE&gt;
&lt;P&gt;Then in the chart, I would have an expression like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum( {$&amp;lt;CurYear = {1}&amp;gt;} Amount )&lt;/LI-CODE&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 20:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-bar-chart-just-showing-only-for-this-current-year/m-p/2014040#M83812</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2022-12-07T20:58:32Z</dc:date>
    </item>
  </channel>
</rss>

