<?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: Expression based on dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447063#M1153647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using multiple dimensions like year, month, date without a dimension group, I believe you are not drilling down, just selecting some dimension values, aren't you? I mean, the &lt;EM&gt;granularity &lt;/EM&gt;is not changing, because whatever you select, your expression is always evaluated in the smallest granularity of dimensions year, month, date (i.e. date), right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am probably missing something essential here, could you post a small sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2013 15:22:54 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-05-10T15:22:54Z</dc:date>
    <item>
      <title>Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447059#M1153643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a time dimension and an expression based on a growth variable (e.g. 10% growth per month). If the user zooms in to weekly, daily or lower levels the formula won't work because the corresponding growth rate refers to month number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use an if statement to define the variable dynamically based on the dimension? E.g. different expression for, month, week, and so on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 08:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447059#M1153643</guid>
      <dc:creator />
      <dc:date>2013-05-10T08:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447060#M1153644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you are using a group with your dimension, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try using system function GetCurrentField() in your if() statement's condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1295"&gt;&lt;/A&gt;&lt;A name="GetCurrentField("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;GetCurrentField(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;groupname&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the name of the field currently active in the group named &lt;SPAN class="Italic"&gt;groupname&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;getcurrentfield( MyGroup ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 08:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447060#M1153644</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-10T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447061#M1153645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No just regular time dimensions: year, month, week and so on. Qlikview automatically allows users to drill down, you don't need to group time dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447061#M1153645</guid>
      <dc:creator />
      <dc:date>2013-05-10T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447062#M1153646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( getpossiblecount(day) = 1, &lt;EM&gt;dayexpression&lt;/EM&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if( getpossiblecount(week) = 1, &lt;EM&gt;weekexpression&lt;/EM&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( getpossiblecount(month) = 1, &lt;EM&gt;montexpression&lt;/EM&gt;, &lt;EM&gt;yearexpression&lt;/EM&gt; )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 09:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447062#M1153646</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-10T09:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447063#M1153647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using multiple dimensions like year, month, date without a dimension group, I believe you are not drilling down, just selecting some dimension values, aren't you? I mean, the &lt;EM&gt;granularity &lt;/EM&gt;is not changing, because whatever you select, your expression is always evaluated in the smallest granularity of dimensions year, month, date (i.e. date), right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am probably missing something essential here, could you post a small sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 15:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447063#M1153647</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-10T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447064#M1153648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl, let's just say it's friday.. Indeed I created a group a long time ago.. which allows drill down functionality. Apart from the drilldown group I also have several listboxes where users can indeed select. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The if statement solution should work. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 16:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-dimension/m-p/447064#M1153648</guid>
      <dc:creator />
      <dc:date>2013-05-10T16:04:01Z</dc:date>
    </item>
  </channel>
</rss>

