<?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: Can you pass current dimension name to a variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491693#M183772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getfield $fileld name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 09:59:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-10T09:59:48Z</dc:date>
    <item>
      <title>Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491688#M183767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem is a bit tricky to explain so please bear with me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;In my application I'm using many conditional dimensions which are conditional on largely the same set of rules, so I'm using the incredibly useful feature of being able to call a variable like a function, passing in a parameter, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vGridConditional(param))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my definition of vGridConditional I'm able to pull out the value of param as a passed parameter within my variable: '$1'&lt;/P&gt;&lt;P&gt;This is an incredibly powerful and useful feature, which is working beautifully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering however is there any way to generically refer to the current dimension within my Enable Conditional statement?&lt;/P&gt;&lt;P&gt;Otherwise I will have to edit a whole bunch of conditional statements to hard code in the current dimension name, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vGridConditional(DimensionA))&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;$(vGridConditional(DimensionB))&lt;/P&gt;&lt;P&gt;... and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of generically referring to the current dimension i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vGridConditional(CurrentDimension))&lt;/P&gt;&lt;P&gt;Which will evaluate to the name of the current dimension within my variable definition?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 07:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491688#M183767</guid>
      <dc:creator>justin_morley</dc:creator>
      <dc:date>2013-09-06T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491689#M183768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't understand 100%..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetCurrentField(GroupName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 08:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491689#M183768</guid>
      <dc:creator />
      <dc:date>2013-09-06T08:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491690#M183769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Karthik. This doesn't help me I'm afraid.&lt;/P&gt;&lt;P&gt;The documentation states that the function GetCurrentField is used in conjunction with groups, which I'm not using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 08:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491690#M183769</guid>
      <dc:creator>justin_morley</dc:creator>
      <dc:date>2013-09-06T08:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491691#M183770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately there's no possibility to reference the current dimension or expression. There's no &lt;EM&gt;this&lt;/EM&gt; or &lt;EM&gt;self&lt;/EM&gt; kind of operator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 18:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491691#M183770</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-09T18:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491692#M183771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. It's nice to know where the hard limits of the product are.&lt;/P&gt;&lt;P&gt;I've now manually made the 200-odd edits to my grids this implies - something I wanted to avoid due to the possibility of human error creeping in somewhere!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491692#M183771</guid>
      <dc:creator>justin_morley</dc:creator>
      <dc:date>2013-09-10T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can you pass current dimension name to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491693#M183772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getfield $fileld name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-pass-current-dimension-name-to-a-variable/m-p/491693#M183772</guid>
      <dc:creator />
      <dc:date>2013-09-10T09:59:48Z</dc:date>
    </item>
  </channel>
</rss>

