<?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 Variable with coma or point in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401738#M489814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with comas and points. I want to declare a couple of variable like this:&lt;/P&gt;&lt;P&gt;[OG_GH] = 0.505&lt;/P&gt;&lt;P&gt;[UG_GH] = 0.296&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I want to use these variables in a expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg ({&amp;lt;Z1V1niO={'&amp;gt;$([UG_GH])'}&amp;gt;*&amp;lt;Z1V1niO={'&amp;lt;$([OG_GH])'}&amp;gt;}[Z1V1niO])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in "expression" I need "," and in Skript ".".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 12:22:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-05T12:22:55Z</dc:date>
    <item>
      <title>Variable with coma or point</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401738#M489814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with comas and points. I want to declare a couple of variable like this:&lt;/P&gt;&lt;P&gt;[OG_GH] = 0.505&lt;/P&gt;&lt;P&gt;[UG_GH] = 0.296&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I want to use these variables in a expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg ({&amp;lt;Z1V1niO={'&amp;gt;$([UG_GH])'}&amp;gt;*&amp;lt;Z1V1niO={'&amp;lt;$([OG_GH])'}&amp;gt;}[Z1V1niO])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in "expression" I need "," and in Skript ".".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 12:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401738#M489814</guid>
      <dc:creator />
      <dc:date>2012-11-05T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with coma or point</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401739#M489815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. If you treat your variables as text, then you should use REPLACE() function. If you are evaluating those values as numbers, use the NUM() and NUM#() functions with the appropiate decimal separators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert the given example, you first need to interpret the dot and then switch it to comma:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NUM(NUM#([OG_GH], '#,##0.0', '.', ','), '#.##0,0', ',', '.')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 12:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401739#M489815</guid>
      <dc:creator>diegofcaivano</dc:creator>
      <dc:date>2012-11-05T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with coma or point</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401740#M489816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try out the replace function in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace('0.505','.',',') -&amp;gt; 0,505 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't have any data where i could test it right now but I think it should work this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Z1V1niO={'&amp;gt;(=replace($([UG_GH]),'.',','))'}&amp;gt;*&amp;lt;Z1V1niO={'&amp;lt;(=replace($([OG_GH]),'.',','))'}&amp;gt;}[Z1V1niO])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 12:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-coma-or-point/m-p/401740#M489816</guid>
      <dc:creator />
      <dc:date>2012-11-05T12:41:14Z</dc:date>
    </item>
  </channel>
</rss>

