<?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: pass the field name into expression using variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309907#M407273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't need keys. because i have one level before name. so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Branch Name&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A is USD and B is EUR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when we select A in branch, Name's all values should multiple with USD only,&lt;/P&gt;&lt;P&gt;if we select a name(i.e A) in Name field, that particular currency value should be multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it is working? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2017 12:05:14 GMT</pubDate>
    <dc:creator>jeevays7</dc:creator>
    <dc:date>2017-07-14T12:05:14Z</dc:date>
    <item>
      <title>pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309904#M407270</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 two tables like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="261"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;NAME&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="69"&gt;Base_Curr&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EUR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;-webkit-right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;EUR&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;USD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above table are linked with Date.&lt;/P&gt;&lt;P&gt;now i need the below Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 261px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Date&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NAME&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Base_Curr&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;EUR&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here im using below expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(Value*(vCurrecy))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inside the variable i have the expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Base_Curr='EUR','EUR','USD')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of above result table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 761px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;NAME&lt;/TD&gt;&lt;TD class="xl65" width="69"&gt;Base_Curr&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl65" width="436"&gt;explaination&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;ex&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl65"&gt;A&lt;/TD&gt;&lt;TD class="xl65"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;100&lt;/TD&gt;&lt;TD class="xl65"&gt;here base currecy is USD so USD values will come ie.10) from table 2&lt;/TD&gt;&lt;TD class="xl65"&gt;10*10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl65"&gt;B&lt;/TD&gt;&lt;TD class="xl65"&gt;EUR&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;100&lt;/TD&gt;&lt;TD class="xl65"&gt;here base currecy is EUR so EUR value will come ie.10) from table 2&lt;/TD&gt;&lt;TD class="xl65"&gt;10*10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;3&lt;/TD&gt;&lt;TD class="xl65"&gt;C&lt;/TD&gt;&lt;TD class="xl65"&gt;USD&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;400&lt;/TD&gt;&lt;TD class="xl65"&gt;here base currecy is USD so USD values will come ie.20) from table 2&lt;/TD&gt;&lt;TD class="xl65"&gt;20*20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309904#M407270</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-14T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309905#M407271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below script.. I think rest of the things easy from here.. You can use Value * CurrencyValue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15000328894832547 jive_text_macro" jivemacro_uid="_15000328894832547"&gt;
&lt;P&gt;CrossTable(Base_Curr,Cur)&lt;/P&gt;
&lt;P&gt;TempT2:&lt;/P&gt;
&lt;P&gt;Load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Date, EUR, USD&lt;/P&gt;
&lt;P&gt;1, 20, 10&lt;/P&gt;
&lt;P&gt;2, 10, 50&lt;/P&gt;
&lt;P&gt;3, 30, 20&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;Mapping Load Date &amp;amp; Base_Curr as Key, Cur Resident TempT2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table TempT2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;Load &lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;ApplyMap('T2',Date &amp;amp; Base_Curr) as CurrencyValue&lt;/P&gt;
&lt;P&gt;Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Date, NAME, Base_Curr, Value&lt;/P&gt;
&lt;P&gt;1, A, USD, 10&lt;/P&gt;
&lt;P&gt;2, B, EUR, 10&lt;/P&gt;
&lt;P&gt;3, C, USD, 20&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309905#M407271</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-07-14T11:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309906#M407272</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&amp;nbsp; below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOad *,Date&amp;amp;Base_Curr as Key inline [&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date,NAME,Base_Curr,Value&lt;/P&gt;&lt;P&gt;1,A,USD,10&lt;/P&gt;&lt;P&gt;2,B,EUR,10&lt;/P&gt;&lt;P&gt;3,C,USD,20&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;CrossTable(Curr,CurrVal)&lt;/P&gt;&lt;P&gt;Load * inline [ &lt;/P&gt;&lt;P&gt;Date,EUR,USD&lt;/P&gt;&lt;P&gt;1,20,10&lt;/P&gt;&lt;P&gt;2,10,50&lt;/P&gt;&lt;P&gt;3,30,20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join(Table1)&lt;/P&gt;&lt;P&gt;Load Date&amp;amp;Curr as Key,CurrVal&lt;/P&gt;&lt;P&gt;Resident Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOw create a chart with dimension like Date,Base_Curr,Name&lt;/P&gt;&lt;P&gt;And expression as Sum(Value*CurrVal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309906#M407272</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-07-14T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309907#M407273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't need keys. because i have one level before name. so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Branch Name&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A is USD and B is EUR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when we select A in branch, Name's all values should multiple with USD only,&lt;/P&gt;&lt;P&gt;if we select a name(i.e A) in Name field, that particular currency value should be multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it is working? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309907#M407273</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-14T12:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309908#M407274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I don't understand what you have explained&lt;/P&gt;&lt;P&gt;2) You can add one more line to my previous code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field Key;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309908#M407274</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-07-14T12:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309909#M407275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Manish,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309909#M407275</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-14T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309910#M407276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we pass field name by using variable? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309910#M407276</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-14T14:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309911#M407277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do the same thing without Date&amp;amp;currency key??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309911#M407277</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-14T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309912#M407278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vCurrency='if(Base_Curr='EUR'['EUR],[USD])';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or on the frontend just enter with no equal sign, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your expression use a $ sign expansion like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/STRONG&gt;SUM(Value*$(vCurrency))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 16:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309912#M407278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309913#M407279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rates:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load * Inline&amp;nbsp; [&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date, EUR, USD&amp;nbsp; &lt;/P&gt;&lt;P&gt;1, 20, 10&amp;nbsp; &lt;/P&gt;&lt;P&gt;2, 10, 50&amp;nbsp; &lt;/P&gt;&lt;P&gt;3, 30, 20&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Values:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load * Inline [&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date, NAME, Base_Curr, Value&amp;nbsp; &lt;/P&gt;&lt;P&gt;1, A, USD, 10&amp;nbsp; &lt;/P&gt;&lt;P&gt;2, B, EUR, 10&amp;nbsp; &lt;/P&gt;&lt;P&gt;3, C, USD, 20&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;NAME&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Base_Curr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum(Value*Pick(Match(Base_Curr,'USD','EUR'), USD,EUR))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;600 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;EUR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;400&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 20:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309913#M407279</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-14T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309914#M407280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why you insist not to do it without Key.&lt;/P&gt;&lt;P&gt;You can do it without using Key but then you have to use Date &amp;amp; Base_Curr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le me give you real world scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might have table like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, EUR, USD &lt;/P&gt;&lt;P&gt;01/07/2017, 20, 10 &lt;/P&gt;&lt;P&gt;10/07/2017, 10, 50 &lt;/P&gt;&lt;P&gt;14/07/2017, 30, 20 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you don't have currency rates for all days. In fact, to reduce the number of lines, we have stored currency rates when there is actually a change wrt previous day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to tackle this type of issue with your question...? You can use below code for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15001052353121076" jivemacro_uid="_15001052353121076"&gt;
&lt;P&gt;CrossTable(Base_Curr,Cur)&amp;nbsp; &lt;/P&gt;
&lt;P&gt;TempT2:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Load * Inline&amp;nbsp; &lt;/P&gt;
&lt;P&gt;[&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Date, EUR, USD&amp;nbsp; &lt;/P&gt;
&lt;P&gt;01/07/2017, 20, 10&amp;nbsp; &lt;/P&gt;
&lt;P&gt;10/07/2017, 10, 50&amp;nbsp; &lt;/P&gt;
&lt;P&gt;14/07/2017, 30, 20&amp;nbsp; &lt;/P&gt;
&lt;P&gt;]; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Temp_Currency:&lt;/P&gt;
&lt;P&gt;Load &lt;/P&gt;
&lt;P&gt;Date as FromDate,&lt;/P&gt;
&lt;P&gt;Date(IF(Base_Curr = Previous(Base_Curr), Previous(Date)-1,Date(Date+1))) as ToDate,&lt;/P&gt;
&lt;P&gt;Base_Curr,&lt;/P&gt;
&lt;P&gt;Cur&lt;/P&gt;
&lt;P&gt;Resident TempT2&lt;/P&gt;
&lt;P&gt;Order By Base_Curr, Date Desc;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table TempT2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T1:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Load * Inline&amp;nbsp; &lt;/P&gt;
&lt;P&gt;[&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Date, NAME, Base_Curr, Value&amp;nbsp; &lt;/P&gt;
&lt;P&gt;02/07/2017, A, USD, 10&amp;nbsp; &lt;/P&gt;
&lt;P&gt;12/07/2017, B, EUR, 10&amp;nbsp; &lt;/P&gt;
&lt;P&gt;14/07/2017, C, USD, 20&amp;nbsp; &lt;/P&gt;
&lt;P&gt;];&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Inner Join &lt;/P&gt;
&lt;P&gt;IntervalMatch(Date, Base_Curr)&lt;/P&gt;
&lt;P&gt;Load FromDate, ToDate, Base_Curr Resident Temp_Currency;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(T1)&lt;/P&gt;
&lt;P&gt;Load * Resident Temp_Currency;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Temp_Currency;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Field FromDate, ToDate;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 07:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309914#M407280</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-07-15T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309915#M407281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309915#M407281</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-17T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: pass the field name into expression using variable</title>
      <link>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309916#M407282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your replyWallo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-the-field-name-into-expression-using-variable/m-p/1309916#M407282</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2017-07-17T10:02:05Z</dc:date>
    </item>
  </channel>
</rss>

