<?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: complex charting - a monthly bar chart with the current year's target line and bars for previous years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482980#M101069</link>
    <description>&lt;P&gt;&amp;nbsp;oh, cool! Thank you for your suggestions&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I will try this one out. Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 10:00:35 GMT</pubDate>
    <dc:creator>jdy_isl</dc:creator>
    <dc:date>2024-09-23T10:00:35Z</dc:date>
    <item>
      <title>complex charting - a monthly bar chart with the current year's target line and bars for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482897#M101067</link>
      <description>&lt;P&gt;hello!&lt;/P&gt;
&lt;P&gt;I'm trying to create a monthly bar chart with the current year's target line and bars for previous years. Is this doable in qlik sense?&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="jdy_isl_0-1727050534429.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172011i69524CE1734D947B/image-size/large?v=v2&amp;amp;px=999" role="button" title="jdy_isl_0-1727050534429.png" alt="jdy_isl_0-1727050534429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 00:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482897#M101067</guid>
      <dc:creator>jdy_isl</dc:creator>
      <dc:date>2024-09-23T00:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: complex charting - a monthly bar chart with the current year's target line and bars for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482975#M101068</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301946"&gt;@jdy_isl&lt;/a&gt;&amp;nbsp; I would do it as below&lt;/P&gt;
&lt;P&gt;create one inline table&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;BR /&gt;Dim&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3 ];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Bar chart with below dimension. Assuming you have created Year and Month fields in your application. where &lt;STRONG&gt;Month&amp;nbsp;&lt;/STRONG&gt;is created in the calendar script as&amp;nbsp;Date(monthstart(SalesDate),'MMMM').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=pick(Dim,'Target '&amp;amp; $(=max(Year)-2),'Target '&amp;amp; $(=max(Year)-1),date(Month,'MMMM'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=pick(Dim,
sum({&amp;lt;Year={"$(=max(Year)-2)"}&amp;gt;}Target),
sum({&amp;lt;Year={"$(=max(Year)-1)"}&amp;gt;}Target),
sum({&amp;lt;Year={"$(=max(Year))"}&amp;gt;}Actual))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to Chart properties -&amp;gt; Add-Ons-&amp;gt; Reference lines -&amp;gt; Reference lines expression -&amp;gt; add below expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum({&amp;lt;Year={"$(=max(Year))"}&amp;gt;}Target)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-23 at 10.34.50.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172037iF26AF386CB1B9CA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-09-23 at 10.34.50.png" alt="Screenshot 2024-09-23 at 10.34.50.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp; &lt;/STRONG&gt;Change your expression according to your data and requirements&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 10:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482975#M101068</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-23T10:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: complex charting - a monthly bar chart with the current year's target line and bars for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482980#M101069</link>
      <description>&lt;P&gt;&amp;nbsp;oh, cool! Thank you for your suggestions&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I will try this one out. Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 10:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482980#M101069</guid>
      <dc:creator>jdy_isl</dc:creator>
      <dc:date>2024-09-23T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: complex charting - a monthly bar chart with the current year's target line and bars for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482983#M101070</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301946"&gt;@jdy_isl&lt;/a&gt;&amp;nbsp; Just made dimension also dynamic in my last reply. check out&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 10:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/complex-charting-a-monthly-bar-chart-with-the-current-year-s/m-p/2482983#M101070</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-23T10:18:04Z</dc:date>
    </item>
  </channel>
</rss>

