<?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: Access Current Dimension/Expression Name within Formula? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395273#M487803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya &lt;STRONG&gt;Oleg&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you and your colleagues could vote for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="2830" __jive_macro_name="idea" _modifiedtitle="Reference Current Dimension/Expression Name within Formulae" class="jive_macro jive_macro_idea default_title _jivemacro_uid_13638692505425377" href="https://community.qlik.com/" jivemacro_uid="_13638692505425377" title="Reference Current Dimension/Expression Name within Formulae"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought, as it wasn't just my idea, it was worth requesting&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2013 12:26:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-21T12:26:33Z</dc:date>
    <item>
      <title>Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395269#M487799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a formula which, given the name of a Dimension (for example) returns whether or not the Dimension exists in the currently selected criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #000000;"&gt;fnIncludeDim:&lt;/STRONG&gt; If &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Dims&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;uvDimensions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;, $1 &amp;amp; ';'), 0)&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial idea was to include this formula (parameterised variable) under each Dimension's "Enable Conditional" field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;=$(fnIncludeDim('TimelineDate'))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;/STRONG&gt;This works great - and basically allows me to create a dynamic Straight Table based on which Dimensions the User has selected from a List Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, with many Dimensions (and with a view to making my Dashboard as "generic" as possible so I can reuse it with other datasets) - my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way to reference the name of the current Dimension from within a formula?&lt;/STRONG&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the &lt;EM&gt;above&lt;/EM&gt; "Enable Conditional" formula would become something like (pseudocode!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;=$(fnIncludeDim(&lt;SPAN style="color: #0000ff;"&gt;$CurrentDimensionName&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This way I would be able to use the same formula (variable) for each Dimension, and the "Dimension Name" parameter would be automatically calculated for each Dimension and passed without having to hard-code it for each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully my question makes sense... I realise the answer is probably "&lt;STRONG&gt;No&lt;/STRONG&gt;" - but I thought I'd ask you lovely people in case any of you have any ideas&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395269#M487799</guid>
      <dc:creator />
      <dc:date>2013-02-01T18:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395270#M487800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been wishing for this feature to exist for years! Something like a function this() or ThisDimension() or ThisExpression() - wouldnt' it be wonderful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, as far as I know, it doesn't exist - I'd love to be wrong on this one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 19:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395270#M487800</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-02-01T19:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395271#M487801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;STRONG&gt;Oleg&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that's exactly what I require - it would be very useful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you might be right - but I'll hang-fire for a little while longer in case anyone else has any insight... keep your fingers crossed!&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 20:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395271#M487801</guid>
      <dc:creator />
      <dc:date>2013-02-02T20:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395272#M487802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;*BUMP*&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No one else with any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 17:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395272#M487802</guid>
      <dc:creator />
      <dc:date>2013-02-27T17:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395273#M487803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya &lt;STRONG&gt;Oleg&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you and your colleagues could vote for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="2830" __jive_macro_name="idea" _modifiedtitle="Reference Current Dimension/Expression Name within Formulae" class="jive_macro jive_macro_idea default_title _jivemacro_uid_13638692505425377" href="https://community.qlik.com/" jivemacro_uid="_13638692505425377" title="Reference Current Dimension/Expression Name within Formulae"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought, as it wasn't just my idea, it was worth requesting&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395273#M487803</guid>
      <dc:creator />
      <dc:date>2013-03-21T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access Current Dimension/Expression Name within Formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395274#M487804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use GetObjectField. GetObjectField takes the index of the dimension that you want, e.g, 1 for the first. The indexes are absolute, i.e., 1 will always return the first dimension regardless if it's enabled or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 17:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Current-Dimension-Expression-Name-within-Formula/m-p/395274#M487804</guid>
      <dc:creator />
      <dc:date>2013-03-21T17:52:27Z</dc:date>
    </item>
  </channel>
</rss>

