<?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: Multiple Columns from a Single Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535775#M482713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the dimension Month and use set analysis on your expression&amp;nbsp; to have info only for the current year (you can store the year number in a variable)? &lt;/P&gt;&lt;P&gt;vYear= Year(Today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 17:03:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-29T17:03:01Z</dc:date>
    <item>
      <title>Multiple Columns from a Single Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535774#M482712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to populate in a straight chart, &lt;SPAN style="color: #333333;"&gt;using a single expression&lt;/SPAN&gt;, multiple columns, each column representing a different Period (e.g. Month). For example, in the month of March, I want the user to see 3 columns of data (January, February and March). In the month of April, I want the user to see 4 columns of data (January, February, March and April). And so on through December, when there would be 12 columns. Right now I am using using 12 expressions in order to populate all 12 months of data, which is fine if it is December, but not if it is March, since I don't want to see the 12 trailing months from March back - just 3 months. So what I am looking for is an expression that considers that period variability. Here are the expressions that I am currently using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;BillTranDate={"&amp;gt;=$(=TimeStamp(MonthStart(vEndDate,0)))&amp;lt;=$(AddMonths(vEndDate,0)))"}&amp;gt;}BillFeeAmt)&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;[Current Month]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=sum({&amp;lt;BillTranDate={"&amp;gt;=$(=TimeStamp(MonthStart(vEndDate,-1)))&amp;lt;=$(AddMonths(vEndDate,-1)))"}&amp;gt;}BillFeeAmt&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;[Prior Month]&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;and so on .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thank you&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 16:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535774#M482712</guid>
      <dc:creator>nlacroix</dc:creator>
      <dc:date>2013-07-29T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Columns from a Single Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535775#M482713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the dimension Month and use set analysis on your expression&amp;nbsp; to have info only for the current year (you can store the year number in a variable)? &lt;/P&gt;&lt;P&gt;vYear= Year(Today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535775#M482713</guid>
      <dc:creator />
      <dc:date>2013-07-29T17:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Columns from a Single Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535776#M482714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use a flag on your master calendar with current year and then &lt;BR /&gt;SUM({&amp;lt;CurYrFlag = {1}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;BillFeeAmt&lt;/SPAN&gt;)&lt;BR /&gt;This will only show you Month as a dimension for the months in the current year, and only for those that have values&lt;BR /&gt;Hope any of this helps&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535776#M482714</guid>
      <dc:creator />
      <dc:date>2013-07-29T17:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Columns from a Single Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535777#M482715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for these suggestions, Pablo. I'll try them.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Date: Mon, 29 Jul 2013 13:10:47 -0400&lt;/P&gt;&lt;P&gt;From: qcwebmaster@qlik.com&lt;/P&gt;&lt;P&gt;Subject: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Multiple Columns from a Single Expression&lt;/P&gt;&lt;P&gt;To: nlacroix@optonline.net&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;					&lt;/P&gt;&lt;P&gt;						&lt;/P&gt;&lt;P&gt;							&lt;/P&gt;&lt;P&gt;								&lt;/P&gt;&lt;P&gt;									&lt;/P&gt;&lt;P&gt;									QlikCommunity&lt;/P&gt;&lt;P&gt;								&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;							&lt;/P&gt;&lt;P&gt;							&lt;/P&gt;&lt;P&gt;								&lt;/P&gt;&lt;P&gt;    Re: Multiple Columns from a Single Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    created by Pablo Abayian in Development (QlikView Desktop) - View the full discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use a flag on your master calendar with current year and then &lt;/P&gt;&lt;P&gt;SUM({}BillFeeAmt)&lt;/P&gt;&lt;P&gt;This will only show you Month as a dimension for the months in the current year, and only for those that have values&lt;/P&gt;&lt;P&gt;Hope any of this helps&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;   Pablo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Reply to this message by replying to this email -or- go to the message on QlikCommunity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Start a new discussion in Development (QlikView Desktop) by email or at QlikCommunity&lt;/P&gt;&lt;P&gt;                                                                                © 1993-2011 QlikTech International AB    &lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;            Copyright &amp;amp; Trademarks | Privacy | Terms of Use | Software EULA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 19:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Columns-from-a-Single-Expression/m-p/535777#M482715</guid>
      <dc:creator>nlacroix</dc:creator>
      <dc:date>2013-07-29T19:45:07Z</dc:date>
    </item>
  </channel>
</rss>

