<?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 dynamic dimension in a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dynamic-dimension-in-a-set-analysis/m-p/503356#M188072</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;Wanted to know if it is possible to have a dynamic dimension in a set analysis. for eg&lt;/P&gt;&lt;P&gt;I have 2 expressions based on selection of a calendar year or financial year&lt;/P&gt;&lt;P&gt;for Calendar year my exp is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;DATE_CYYYY=$(v_CDATE)&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for Fiscal year my exp is.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;DATE_FYYYY=$(v_CDATE)&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting a variable v_Year which can either have value as DATE_CYYYY or DATE_FYYYY.&amp;nbsp; I am setting this value on a click of a button. i.e when user clicks on Fiscal year then, v_Year is set to DATE_FYYYY and if he clicks on Calendar Year then value is DATE_CYYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have an expression as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;$(v_Year)=$(v_CDATE)&amp;gt;}Amount &lt;/STRONG&gt;OR&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;v_Year=$(v_CDATE)&amp;gt;}Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to work. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 11:37:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-22T11:37:00Z</dc:date>
    <item>
      <title>dynamic dimension in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-dimension-in-a-set-analysis/m-p/503356#M188072</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;Wanted to know if it is possible to have a dynamic dimension in a set analysis. for eg&lt;/P&gt;&lt;P&gt;I have 2 expressions based on selection of a calendar year or financial year&lt;/P&gt;&lt;P&gt;for Calendar year my exp is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;DATE_CYYYY=$(v_CDATE)&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for Fiscal year my exp is.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;DATE_FYYYY=$(v_CDATE)&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting a variable v_Year which can either have value as DATE_CYYYY or DATE_FYYYY.&amp;nbsp; I am setting this value on a click of a button. i.e when user clicks on Fiscal year then, v_Year is set to DATE_FYYYY and if he clicks on Calendar Year then value is DATE_CYYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have an expression as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;$(v_Year)=$(v_CDATE)&amp;gt;}Amount &lt;/STRONG&gt;OR&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;v_Year=$(v_CDATE)&amp;gt;}Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to work. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 11:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-dimension-in-a-set-analysis/m-p/503356#M188072</guid>
      <dc:creator />
      <dc:date>2013-10-22T11:37:00Z</dc:date>
    </item>
  </channel>
</rss>

