<?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: Using variable for column name in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-for-column-name-in-Set-Analysis/m-p/458167#M171044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That the expression editor shows an error doesn't mean the expression doesn't work. The syntax checker can get thrown off when you're using variables in place of field names. The expression looks correct to me. Make sure your variable contains the exact field name without any quotes. FRANCHISE is correct, 'FRANCHISE' isn't and Franchise isn't either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2013 06:07:58 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-11T06:07:58Z</dc:date>
    <item>
      <title>Using variable for column name in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-for-column-name-in-Set-Analysis/m-p/458166#M171043</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;We have few reports where users have an option to select the Column's. The Column names are provided using a List box. A variable then picks up this value through a variable. ( Var_Project_attribute).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are few data in the Selected dimension which needs to be removed in the report. Data like, 'NA', 'NON PROJECT' needs to be hidden /removed only from the selected colum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only for the display purpose. Internally we dont want all the 'NA' to be removed. Its only for the selected dimension the 'NA' need to be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am get the following to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= SUM&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;upper&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;$(Var_Project_Attribute)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt;'NA' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;upper&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;$(Var_Project_Attribute)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 'NON PROJECT', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NATURE_DESCRIPTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; 'Internal Cost (Actual)', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXPENSES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0),0))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am able to see delay in the above report when i change the dimension. When i try a set analysis, it works fine for a dimension like FRANCHISE.&lt;/P&gt;&lt;P&gt;=&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FRANCHISE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'*'} - {'NA', 'NON PROJECT'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NATURE_DESCRIPTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'*'} - {'Internal Cost (Actual)'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXPENSES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want to replace the FRANCHISE with the vairable. Var_Project_Attribute. I am not able to get this part. Can you please help me in this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The following shows error in the expression,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Var_Project_Attribute)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'*'} - {'NA', 'NON PROJECT'}, NATURE_DESCRIPTION ={'*'} - {'Internal Cost (Actual)'} &amp;gt;} EXPENSES)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Venu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 02:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-for-column-name-in-Set-Analysis/m-p/458166#M171043</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2013-06-11T02:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable for column name in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-for-column-name-in-Set-Analysis/m-p/458167#M171044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That the expression editor shows an error doesn't mean the expression doesn't work. The syntax checker can get thrown off when you're using variables in place of field names. The expression looks correct to me. Make sure your variable contains the exact field name without any quotes. FRANCHISE is correct, 'FRANCHISE' isn't and Franchise isn't either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 06:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-for-column-name-in-Set-Analysis/m-p/458167#M171044</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-11T06:07:58Z</dc:date>
    </item>
  </channel>
</rss>

