<?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 Displaying Selected Quarter and Previous Year Quarter in a Graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-Selected-Quarter-and-Previous-Year-Quarter-in-a-Graph/m-p/1271662#M26157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how to display values in a Graph bar for the "currently" selected Quarter (i.e. 2016-1) and the same Quarter last year (2015-1)&lt;/P&gt;&lt;P&gt;I have been able to create Expressions to return the values for both periods, in a table object by using the below expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection representing the Quarter is based on this field: &lt;SPAN style="font-size: 13.3333px;"&gt;[Financial Quarter] so current quarter = '2016-1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The expression: $(=Max(CRank)) represent the last month of the selected quarter, where CRank is a linear key)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The expression: &lt;SPAN style="font-size: 13.3333px;"&gt;[CRank]={'$(=Max(CRank)-12)','$(=Max(CRank)-13)','$(=Max(CRank)-14)'} returns all the months corresponding to the previous year quarter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Quarter Selection&lt;/P&gt;&lt;P&gt;Sum([Field])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Quarter:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;[Financial Quarter]=,[CRank]={'$(=Max(CRank)-12)','$(=Max(CRank)-13)','$(=Max(CRank)-14)'}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;[Field]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Both expressions are working properly in the table object, but i cannot use those in a graph object when i need to display a bar graph where the x-axis represent the &lt;SPAN style="font-size: 13.3333px;"&gt;[Financial Quarter], because it only returns the current selection &lt;SPAN style="font-size: 13.3333px;"&gt;'2016-1', when i need to return '2016-1' &amp;amp; '2015-1'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So the question is: how can the dimension selection be ignored so both values are displayed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;David.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 01:14:03 GMT</pubDate>
    <dc:creator>davidpetiot</dc:creator>
    <dc:date>2016-11-18T01:14:03Z</dc:date>
    <item>
      <title>Displaying Selected Quarter and Previous Year Quarter in a Graph</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-Selected-Quarter-and-Previous-Year-Quarter-in-a-Graph/m-p/1271662#M26157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how to display values in a Graph bar for the "currently" selected Quarter (i.e. 2016-1) and the same Quarter last year (2015-1)&lt;/P&gt;&lt;P&gt;I have been able to create Expressions to return the values for both periods, in a table object by using the below expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection representing the Quarter is based on this field: &lt;SPAN style="font-size: 13.3333px;"&gt;[Financial Quarter] so current quarter = '2016-1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The expression: $(=Max(CRank)) represent the last month of the selected quarter, where CRank is a linear key)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The expression: &lt;SPAN style="font-size: 13.3333px;"&gt;[CRank]={'$(=Max(CRank)-12)','$(=Max(CRank)-13)','$(=Max(CRank)-14)'} returns all the months corresponding to the previous year quarter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Quarter Selection&lt;/P&gt;&lt;P&gt;Sum([Field])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Quarter:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;[Financial Quarter]=,[CRank]={'$(=Max(CRank)-12)','$(=Max(CRank)-13)','$(=Max(CRank)-14)'}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;[Field]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Both expressions are working properly in the table object, but i cannot use those in a graph object when i need to display a bar graph where the x-axis represent the &lt;SPAN style="font-size: 13.3333px;"&gt;[Financial Quarter], because it only returns the current selection &lt;SPAN style="font-size: 13.3333px;"&gt;'2016-1', when i need to return '2016-1' &amp;amp; '2015-1'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So the question is: how can the dimension selection be ignored so both values are displayed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;David.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 01:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-Selected-Quarter-and-Previous-Year-Quarter-in-a-Graph/m-p/1271662#M26157</guid>
      <dc:creator>davidpetiot</dc:creator>
      <dc:date>2016-11-18T01:14:03Z</dc:date>
    </item>
  </channel>
</rss>

