<?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: Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350528#M129925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Now I understand what you mean (hopefully!). In my example, if you wanted to see all the Sales values for vTest variable then you need to use Concat function with Set Expression. However in your dataset if you have one-one relationship between the two fields then you can use ONLY function or any aggregation function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Months&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;$(vTest)}&amp;gt;} Sales, ', ')&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 8pt; text-decoration: underline;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #808080; font-size: 8pt; text-decoration: underline;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;ONLY({&amp;lt;Months = {$(vTest)}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I'm attaching the updated QVW file. I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers - DV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://qlikshare.com"&gt;http://qlikshare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 19:33:17 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-05-14T19:33:17Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350517#M129914</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;Is it possible to use the variable in the if condition like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If (Value='$(vName)', Result)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 15:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350517#M129914</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350518#M129915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Yes, you can use it. If you have expression in the variable then you can use the dollar sign expansion. If not, you can use :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;=If (Value = vName, Result)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I'm assuming that "Value" is the field name in the above example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers - DV&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350518#M129915</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T16:17:46Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350519#M129916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes it is the field value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350519#M129916</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T16:22:10Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350520#M129917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; But does the Value column should have a default selected value ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350520#M129917</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350521#M129918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Okay. What does the variable contain? Have you tried the above solution? Please post the sample QV document if you still have issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Answering your second question : It doesn't need to be default selction however, if you wanted to execute the condition based on field selection then you can use meta data functions in QlikView. I had made a video tutorial explaining more about meta data functions in QlikView. Here is the link :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://qlikshare.com/241"&gt;http://qlikshare.com/241&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://QlikShare.Com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350521#M129918</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350522#M129919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I tried it if the value is selected then it is working fine else it is not. File size is huge . i need to scrample it.It will take a lot of time. If you place some example it would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350522#M129919</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T16:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350523#M129920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Okay, so you don't want to make selection but you wanted to check if the condition evaluates true or false. Is this right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks - DV&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350523#M129920</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350524#M129921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;If you need to check the field values hold the contents of variable as a condition without making a selection then you need something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;=IF(Concat(Value, ', ') like '*$(vName)*', Result)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I'm using the like operator with wild card - (*) to search if the variable contents exists within your Value field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope this makes sense. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350524#M129921</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350525#M129922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK let me check , Result field is also a column name.Not the hardcoded value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350525#M129922</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350526#M129923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I'm not sure if you wanted to display the "&lt;EM&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/EM&gt;" field in TextBox or ListBox. However, I have created a sample QVW file for your reference. Please check the two variable I have used in the example. They are &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vTest &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;and &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vCondition &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;and please let me know if you have any questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.Com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350526#M129923</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T17:07:36Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350527#M129924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi DV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your response.Sorry if i have not provided&amp;nbsp; the clear details. Consider your example you&amp;nbsp; have given vTest as Jan , so the object TX10 should have sales output related to Jan. but it is displaying all the sales data. that is the problem. I want to show only Jan related data in TX10.Please let me know if still you need more clarity .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350527#M129924</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-05-14T17:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/350528#M129925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Now I understand what you mean (hopefully!). In my example, if you wanted to see all the Sales values for vTest variable then you need to use Concat function with Set Expression. However in your dataset if you have one-one relationship between the two fields then you can use ONLY function or any aggregation function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Months&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;$(vTest)}&amp;gt;} Sales, ', ')&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 8pt; text-decoration: underline;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #808080; font-size: 8pt; text-decoration: underline;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;ONLY({&amp;lt;Months = {$(vTest)}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I'm attaching the updated QVW file. I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers - DV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://qlikshare.com"&gt;http://qlikshare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 19:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/350528#M129925</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-14T19:33:17Z</dc:date>
    </item>
  </channel>
</rss>

