<?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 issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537515#M1126859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. should work if there is only one possible value for both Market and City (e.g. you've selected one value in each field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. is not correct syntax, something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only({&amp;lt;Market= {'AA'}, City={'NN'}&amp;gt;} Emp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;should work, returning 2, regardless of selections in Market and City.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 14:49:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-12-30T14:49:38Z</dc:date>
    <item>
      <title>Variable issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537513#M1126857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 83px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Market&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Emp&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;City&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;City Emp&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DD&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;ZZ&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ZZ&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Can we create a variable for 2 selection like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vMarket= If(Match(Market,'AA','BB','CC') AND Match(City,'NN'),Emp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. vMarket= Sum({&amp;lt;Market= {'AA','BB','CC'},C]City={'NN'}&amp;gt;}City Emp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not plz tell me..How I can take the value of Emp in my expression as variable.. I have to take both the selection in one variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reply soon..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537513#M1126857</guid>
      <dc:creator />
      <dc:date>2013-12-30T14:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537514#M1126858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variable can only hold a single value at any one time. In your first example vMarket could equal 2, 3 or 4 so would not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain what you are trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want to create a new calculated field instead? You would do that in the load script, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Market,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Emp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [City Emp],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(Market,'AA','BB','CC') AND Match(City,'NN'), Emp, 0) as MyField&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"MyField" would then contain a positive Emp value or zero if there is no match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537514#M1126858</guid>
      <dc:creator />
      <dc:date>2013-12-30T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537515#M1126859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. should work if there is only one possible value for both Market and City (e.g. you've selected one value in each field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. is not correct syntax, something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only({&amp;lt;Market= {'AA'}, City={'NN'}&amp;gt;} Emp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;should work, returning 2, regardless of selections in Market and City.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537515#M1126859</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-30T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable issue</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537516#M1126860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a variable and the value of the variable can be varied based on the activation/deactivation of the other sheet objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any sheet object in the actions&amp;gt;external&amp;gt;set variable, you can define the value of that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way on activation of the sheet objects the value of the same variable can be changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-issue/m-p/537516#M1126860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-30T14:51:41Z</dc:date>
    </item>
  </channel>
</rss>

