<?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 By Month, Year over Year Comparison Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529714#M198002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tying to create a simple bar chart that displays the percent change by month for 2013 vs. 2012. I am using the following expression, but the chart displays "No Data to Display"... Please help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Monthnum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vCurrentMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[qualified]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(=(vCurrentYear)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vCurrentMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[qualified]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 16:18:23 GMT</pubDate>
    <dc:creator>zach_paz</dc:creator>
    <dc:date>2013-10-25T16:18:23Z</dc:date>
    <item>
      <title>By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529714#M198002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tying to create a simple bar chart that displays the percent change by month for 2013 vs. 2012. I am using the following expression, but the chart displays "No Data to Display"... Please help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Monthnum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vCurrentMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[qualified]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(=(vCurrentYear)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vCurrentMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[qualified]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 16:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529714#M198002</guid>
      <dc:creator>zach_paz</dc:creator>
      <dc:date>2013-10-25T16:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529715#M198003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression I believe the Monthnum is returning no results because the double quotes are causing QV to look for the text string &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&amp;lt;=$(vCurrentMonth) &lt;/SPAN&gt;in the Monthnum field vs searching for &amp;lt;=10 (for October).&amp;nbsp; Try using this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Monthnum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {$(='"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&amp;lt;=' &amp;amp; $(vCurrentMonth) &amp;amp; '"')&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 16:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529715#M198003</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-10-25T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529716#M198004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The double quotes are not the problem. More likely is the expansion of the vCurrentYear variable. Try putting in a $ character&amp;nbsp; &lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 9pt; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;EM&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;(vCurrentYear)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, (just in case you did) don't use Year as dimension in your bar chart. That will cause a &lt;EM&gt;No data to display&lt;/EM&gt; message too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 17:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529716#M198004</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-25T17:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529717#M198005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your input. I tried both options and it still does not seem to work. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my expression looks like with G Wassenaar's suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Year]={$(vCurrentYear)},Monthnum = {"&amp;lt;=$(vCurrentMonth)"}&amp;gt;}[qualified])/sum({&amp;lt;[Year]={$(=$(vCurrentYear)-1)},MonthNum = {"&amp;lt;=$(vCurrentMonth)"}&amp;gt;}[qualified]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529717#M198005</guid>
      <dc:creator>zach_paz</dc:creator>
      <dc:date>2013-10-25T18:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529718#M198006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still doesn't work... I added my new expression with your suggestion to the original thread. Any other suggestions would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529718#M198006</guid>
      <dc:creator>zach_paz</dc:creator>
      <dc:date>2013-10-25T18:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529719#M198007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the attached example. Perhaps you can spot the difference. Perhaps it's in one of your variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529719#M198007</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-25T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529720#M198008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've played around with various dollar sign, quote bracket combinations and I'm feeling good about your syntax.&amp;nbsp; The issue could be in what is being returned by the variable.&amp;nbsp; Try hard coding what you believe what is being returned by the variable and see if the expression works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529720#M198008</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-10-25T18:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529721#M198009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried everyone's suggestion and even recreated it using &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt; example and it still wouldn't work. It may have to do with the variables I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a simple expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year ={'2013'}&amp;gt;} inquiries) / sum({&amp;lt;Year ={'2012'}&amp;gt;} inquiries) -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyones help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 21:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529721#M198009</guid>
      <dc:creator>zach_paz</dc:creator>
      <dc:date>2013-11-06T21:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: By Month, Year over Year Comparison Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529722#M198010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your MonthNums are not the same case, one has a lower case 'n' and the other an upper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 21:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/By-Month-Year-over-Year-Comparison-Bar-Chart/m-p/529722#M198010</guid>
      <dc:creator>Tammy_Milsom</dc:creator>
      <dc:date>2013-11-06T21:44:36Z</dc:date>
    </item>
  </channel>
</rss>

