<?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: Graph Dimension with [] in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010779#M83583</link>
    <description>&lt;P&gt;Thanks for your reply, &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;That doesn't solve my problem as when I click on the &lt;STRONG&gt;month button&lt;/STRONG&gt; for example to agregate by month, then vTimeLevel=Month-Year Field from the calendar and will not work without brakets.&lt;/P&gt;
&lt;P&gt;If I put &lt;STRONG&gt;[&lt;/STRONG&gt;vTimeLevel&lt;STRONG&gt;]&lt;/STRONG&gt; as dimension then it will work for &lt;STRONG&gt;[&lt;/STRONG&gt;Month-Year&lt;STRONG&gt;]&lt;/STRONG&gt; field not when I click on last 7 days button : the &lt;STRONG&gt;[&lt;/STRONG&gt;vTimeLevel&lt;STRONG&gt;]&lt;/STRONG&gt; dimension will be &lt;STRONG&gt;[&lt;/STRONG&gt;if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date)&lt;STRONG&gt;] &lt;/STRONG&gt;and will not work...&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 09:02:32 GMT</pubDate>
    <dc:creator>bertrand01</dc:creator>
    <dc:date>2022-11-30T09:02:32Z</dc:date>
    <item>
      <title>Graph Dimension with []</title>
      <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010539#M83574</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;I have the dimension of a graph in a variable vTimeLevel.&lt;/P&gt;
&lt;P&gt;In most case, &lt;STRONG&gt;this dimension is the name of a field&lt;/STRONG&gt; from a calendar. &lt;BR /&gt;Because &lt;U&gt;the field name can contain '-'&lt;/U&gt;, like mois-année, I need to put it between&amp;nbsp; [] : &lt;STRONG&gt;[$(vTimeLevel)]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;But in some other case the value of&amp;nbsp;&lt;STRONG&gt;vTimeLevel &lt;/STRONG&gt;&lt;U&gt;is not a field, but a variable&lt;/U&gt; :&amp;nbsp; ='if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date)'&lt;/P&gt;
&lt;P&gt;So it does not work either for the dimension case or the variable case.&lt;/P&gt;
&lt;P&gt;I've tried all the things I could think of but it doesn't work. &lt;BR /&gt;Any idea how I can solve this?&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 16:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010539#M83574</guid>
      <dc:creator>bertrand01</dc:creator>
      <dc:date>2022-11-29T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Dimension with []</title>
      <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010726#M83580</link>
      <description>&lt;P&gt;calculated dimensions need to be wrapped in AGGR()&amp;nbsp; &amp;nbsp;as below&lt;/P&gt;
&lt;P&gt;also remove single quotes from the expression&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vTimeLevel&lt;SPAN&gt;&amp;nbsp; =&amp;nbsp;&amp;nbsp;if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Dimension =&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;AGGR (&amp;nbsp;&lt;STRONG&gt;vTimeLevel&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;, %KeyDate )&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;OR&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;AGGR ($(&amp;nbsp;vTimeLevel)&amp;nbsp;&amp;nbsp;, %KeyDate )&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010726#M83580</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-11-30T07:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Dimension with []</title>
      <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010779#M83583</link>
      <description>&lt;P&gt;Thanks for your reply, &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;That doesn't solve my problem as when I click on the &lt;STRONG&gt;month button&lt;/STRONG&gt; for example to agregate by month, then vTimeLevel=Month-Year Field from the calendar and will not work without brakets.&lt;/P&gt;
&lt;P&gt;If I put &lt;STRONG&gt;[&lt;/STRONG&gt;vTimeLevel&lt;STRONG&gt;]&lt;/STRONG&gt; as dimension then it will work for &lt;STRONG&gt;[&lt;/STRONG&gt;Month-Year&lt;STRONG&gt;]&lt;/STRONG&gt; field not when I click on last 7 days button : the &lt;STRONG&gt;[&lt;/STRONG&gt;vTimeLevel&lt;STRONG&gt;]&lt;/STRONG&gt; dimension will be &lt;STRONG&gt;[&lt;/STRONG&gt;if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date)&lt;STRONG&gt;] &lt;/STRONG&gt;and will not work...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 09:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2010779#M83583</guid>
      <dc:creator>bertrand01</dc:creator>
      <dc:date>2022-11-30T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Dimension with []</title>
      <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2011170#M83612</link>
      <description>&lt;P&gt;G'day &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/55341"&gt;@bertrand01&lt;/a&gt;, this is a curious problem.&lt;/P&gt;
&lt;P&gt;Is it possible to include the square brackets in the value of the variable? For example ...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vTimeLevel = '[mois-année]';&lt;/LI-CODE&gt;
&lt;P&gt;When you paste $(vTimeLevel) into the column, it will already include the brackets.&lt;/P&gt;
&lt;P&gt;Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 21:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2011170#M83612</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2022-11-30T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Dimension with []</title>
      <link>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2011299#M83625</link>
      <description>&lt;P&gt;Thanks &lt;SPAN&gt; &lt;/SPAN&gt;&lt;A id="link_24" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2856" target="_self" aria-label="View Profile of barnabyd" aria-describedby="userProfileCard-2856"&gt;&lt;SPAN class=""&gt;Barnabyd&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Sorry that I dont expose my problem clearly :&lt;BR /&gt;There's buttons affecting the value of the variable &lt;STRONG&gt;vTimeLevel&lt;SPAN&gt; :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;It can be for example :&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vTimeLevel&lt;SPAN&gt;  =  [Année] &lt;/SPAN&gt;&lt;/STRONG&gt;(Year)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vTimeLevel&lt;SPAN&gt;  =  [Mois-Année] &lt;/SPAN&gt;&lt;/STRONG&gt;(Year-Month)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vTimeLevel&lt;SPAN&gt;  =  if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In my graphs, I have 2 choices for using the dimension : &lt;BR /&gt;=vTimeLevel &lt;STRONG&gt;or&lt;/STRONG&gt; =[vTimeLevel]&lt;/P&gt;
&lt;P&gt;If I use =vTimeLevel, &lt;STRONG&gt;&lt;SPAN&gt;Mois-Année &lt;/SPAN&gt;&lt;/STRONG&gt;does not work and just shows -Année value (-Year)&lt;/P&gt;
&lt;P&gt;If I use =&lt;STRONG&gt;[&lt;/STRONG&gt;vTimeLevel&lt;STRONG&gt;],&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN&gt;if([%KeyDate] &amp;gt;= $(=max(%KeyDate))-7, Date) &lt;/SPAN&gt;&lt;/STRONG&gt;does not work as it doesn't understand the &lt;STRONG&gt;[]&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graph-Dimension-with/m-p/2011299#M83625</guid>
      <dc:creator>bertrand01</dc:creator>
      <dc:date>2022-12-01T08:13:00Z</dc:date>
    </item>
  </channel>
</rss>

