<?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 the string variable MoneyFormat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396489#M701034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same aproach in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 09:54:30 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-12T09:54:30Z</dc:date>
    <item>
      <title>Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396480#M701025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt;'m &lt;SPAN class="hps"&gt;making&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a dashboard&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;linked to a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;NAV&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;database&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Within this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;NAV&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;database&lt;/SPAN&gt; there is setting &lt;SPAN class="hps"&gt;ocal&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;currency&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;corresponding&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;symbol&lt;/SPAN&gt;. I have putted this &lt;SPAN class="hps"&gt;currency&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;symbol&lt;/SPAN&gt; in a&lt;SPAN class="hps"&gt; variable&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &lt;SPAN class="hps"&gt;I want&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;added to the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;moneyformat &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;in the script&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;something like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;SET &lt;/SPAN&gt;MoneyFormat &lt;SPAN class="hps"&gt;=&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;'$&lt;/SPAN&gt;&lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;vCurrSymbol) &lt;SPAN class="hps"&gt;&amp;amp; #&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;#&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;# 0.00&lt;/SPAN&gt;; &lt;SPAN class="hps"&gt;-&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;$&lt;/SPAN&gt;&lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;vCurrSymbol) &lt;SPAN class="hps"&gt;&amp;amp; #&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;#&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;# 0.00&lt;/SPAN&gt;&lt;SPAN class="hps atn"&gt;"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;get&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the right result&lt;/SPAN&gt;. &lt;SPAN class="hps"&gt;The variable is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;displayed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as text&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Can anyone&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help me&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 16:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396480#M701025</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-11T16:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396481#M701026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything works fine. Just correct the last quote.&lt;/P&gt;&lt;P&gt;SET MoneyFormat ='$(vCurrSymbol) &amp;amp; #, ## 0.00; -$(vCurrSymbol) &amp;amp; #, ## 0.00&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396481#M701026</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-11T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396482#M701027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I tried your example but then I get also the wrong result.&lt;/P&gt;&lt;P&gt;See the screenhot attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396482#M701027</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-11T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396483#M701028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange. I just changed my MoneyFormat on yours and defined vCurrSymbol in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using this expression with $(vCurrSymbol) to make a dynamic text format ?&lt;/P&gt;&lt;P&gt;If so, you have to &lt;SPAN style="text-decoration: underline;"&gt;change the entire MoneyFormat value&lt;/SPAN&gt; not just vCurrSymbol.&lt;/P&gt;&lt;P&gt;MoneyFormat is just a string, it seems that QV doesn't recalculate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 05:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396483#M701028</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396484#M701029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the variable vCurrSymbol like this: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;LET &lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;vCurrSymbol &lt;/EM&gt;&lt;/STRONG&gt;= '=CurrencyCodesSymbol'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I copied your string into my script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thx for the help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 07:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396484#M701029</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-12T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396485#M701030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is '=CurrencyCodesSymbol' ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use something like this:&lt;/P&gt;&lt;P&gt;SET vCurrSymbol = 'AU';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 07:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396485#M701030</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T07:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396486#M701031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added an example how I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 07:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396486#M701031</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-12T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396487#M701032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't do it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the format of some field depending on value of another field use dual() function.&lt;/P&gt;&lt;P&gt;In this case you can set up text representation and numeric value of your field separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression for sales:&lt;/P&gt;&lt;P&gt;=dual(CurrencyCodesSymbol &amp;amp; ' ' &amp;amp; num(Sum(SaleslineAmount), '#,##0.00', '.' , ','), Sum(SaleslineAmount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396487#M701032</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396488#M701033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution works.&lt;/P&gt;&lt;P&gt;Thx for that&lt;/P&gt;&lt;P&gt;The onley thing is I have to do this for al the expressions and I have a lot expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396488#M701033</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-12T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396489#M701034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same aproach in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 09:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396489#M701034</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396490#M701035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my misunderstanding, I'm not working with QV for that long but I don't see how I can do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 10:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396490#M701035</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-12T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396491#M701036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load SaleslineAmount, you can use instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(CurrencyCodesSymbol &amp;amp; ' ' &amp;amp; num(SaleslineAmount, '#,##0.00', '.' , ','), SaleslineAmount) &lt;STRONG&gt;as&lt;/STRONG&gt; SaleslineAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but field CurrencyCodesSymbol should be in the same source table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 10:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396491#M701036</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396492#M701037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396492#M701037</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-09-12T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in the string variable MoneyFormat</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396493#M701038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This trick with text representation works not only with tables but also with charts (values on data point and so on).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 16:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-the-string-variable-MoneyFormat/m-p/396493#M701038</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T16:43:27Z</dc:date>
    </item>
  </channel>
</rss>

