<?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. :Problem using Variable in a Dimension, Help on Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229562#M502721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;I'm able to solve my problem using PICARD's solution. I just removed the quotes in a variable.&lt;/P&gt;&lt;P&gt;Also Thanks to Kaushiksolanki for the idea of suppressing null values.&lt;/P&gt;&lt;P&gt;Thanks to all!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 14:11:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-06T14:11:58Z</dc:date>
    <item>
      <title>Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229557#M502716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Guys,&lt;/P&gt;&lt;P&gt;I have a dimension that I want to limit using Set Analysis that compares dimension to a Variable.&lt;/P&gt;&lt;P&gt;This code is not working:&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Only({$&amp;lt;ProjectName = {$(vTargetProject)}&amp;gt;} ProjectName}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I not sure in using ONLY as function since IF function did not supports set analysis.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229557#M502716</guid>
      <dc:creator />
      <dc:date>2010-10-06T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229558#M502717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe if(vTargetProject = ProjectName, ProjectName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229558#M502717</guid>
      <dc:creator />
      <dc:date>2010-10-06T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229559#M502718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you wan't limit the dimension using the calculate dimension you can use that :&lt;/P&gt;&lt;P&gt;=Aggr(Maxstring ({$&amp;lt;ProjectName = {"$(vTargetProject)"} &amp;gt;} ProjectName),ProjectName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wan't limit the dimension using the expression you can use that :&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;ProjectName = {"$(vTargetProject)"}&amp;gt;} [My Measure])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229559#M502718</guid>
      <dc:creator />
      <dc:date>2010-10-06T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229560#M502719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess that your ProjectName field is alphanumeric, so you need to quote it in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; ProjectName = {'$(vTargetProject)'} &amp;gt;} ProjectName)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If vTargetProject has many values, you wil need to concatenate and quote them.&lt;/P&gt;&lt;P&gt;Is this the case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229560#M502719</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-06T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229561#M502720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;DIV class="CommonCommentArrow"&gt;&lt;DIV class="r1"&gt;&lt;/DIV&gt;&lt;DIV class="r2"&gt;&lt;/DIV&gt;&lt;DIV class="r3"&gt;&lt;/DIV&gt;&lt;DIV class="r4"&gt;&lt;/DIV&gt;&lt;DIV class="r5"&gt;&lt;/DIV&gt;&lt;DIV class="r6"&gt;&lt;/DIV&gt;&lt;DIV class="r7"&gt;&lt;/DIV&gt;&lt;DIV class="r8"&gt;&lt;/DIV&gt;&lt;DIV class="r9"&gt;&lt;/DIV&gt;&lt;DIV class="r10"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="CommonCommentBubble"&gt;&lt;DIV class="CommonCommentBubbleRoundTop"&gt;&lt;DIV class="r1"&gt;&lt;/DIV&gt;&lt;DIV class="r2"&gt;&lt;/DIV&gt;&lt;DIV class="r3"&gt;&lt;/DIV&gt;&lt;DIV class="r4"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="CommonCommentContent" style="width:100%;overflow:hidden;"&gt;&lt;STRONG&gt;Nadsky&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I have tried the same with the help of If statement.....&lt;/P&gt;&lt;P&gt;What you have to do is Add Following If statement in dimension.&lt;/P&gt;&lt;P&gt;if(Field_Name = '$(variable_name)',Field_Name)&lt;/P&gt;&lt;P&gt;After doing these He may Show you entry showing ' - '&lt;/P&gt;&lt;P&gt;To hide that you have to just check on "Suppress When Value is Null"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and let me know if these is working in your application, if not we will find some other solution.....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229561#M502720</guid>
      <dc:creator />
      <dc:date>2010-10-06T13:45:29Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem using Variable in a Dimension, Help on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229562#M502721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;I'm able to solve my problem using PICARD's solution. I just removed the quotes in a variable.&lt;/P&gt;&lt;P&gt;Also Thanks to Kaushiksolanki for the idea of suppressing null values.&lt;/P&gt;&lt;P&gt;Thanks to all!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 14:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-Variable-in-a-Dimension-Help-on-Set-Analysis/m-p/229562#M502721</guid>
      <dc:creator />
      <dc:date>2010-10-06T14:11:58Z</dc:date>
    </item>
  </channel>
</rss>

