<?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: use variable in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948914#M326594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your samples work exactly as i need but it is not working on my data within QlikSense....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 03:06:32 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2015-10-23T03:06:32Z</dc:date>
    <item>
      <title>use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948910#M326590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with sales amounts of each department..the department names are the headers and the sales amounts are the rows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Department 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department3&lt;/P&gt;&lt;P&gt;1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an inline table with the names of the departments and created a variable to have get selected value of the department name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to use a variable in expression to switch the column name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([$(varDepartment)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when I change my selection I get the selected department sales... but it is not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948910#M326590</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-10-23T02:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948911#M326591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the attached helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948911#M326591</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-23T02:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948912#M326592</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vDepartment = Depatment 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression =Sum([$(=vDepartment)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948912#M326592</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-23T02:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948913#M326593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use this &lt;/P&gt;&lt;P&gt;=$(='sum([' &amp;amp; $(varDepartment) &amp;amp; '])')&lt;/P&gt;&lt;P&gt;this should do the trick &lt;/P&gt;&lt;P&gt;but if i where you i will do a crosstable load on the original table &lt;/P&gt;&lt;P&gt;to get the table to this structure:&lt;/P&gt;&lt;P&gt;DivisionName,Sales&lt;/P&gt;&lt;P&gt;Division1,1000&lt;/P&gt;&lt;P&gt;Divison2,2000&lt;/P&gt;&lt;P&gt;Divison3 ,2200&lt;/P&gt;&lt;P&gt;then use a list box of the division field for selecting specific division&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948913#M326593</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-10-23T02:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948914#M326594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your samples work exactly as i need but it is not working on my data within QlikSense....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948914#M326594</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-10-23T03:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948915#M326595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you.. this worked for me... I cannot use cross table here as the data is used somewhere else too.. so I was looking for a quick solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948915#M326595</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-10-23T03:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: use variable in expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948916#M326596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought you wanted to do this in QlikView because you posted this on QlikView forum. Not sure how Qlik Sense works for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-variable-in-expression/m-p/948916#M326596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-23T03:12:08Z</dc:date>
    </item>
  </channel>
</rss>

