<?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 set a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141015#M20986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i want to set a variable in the script that have-&lt;/P&gt;&lt;P&gt;if($(v_metric_5)&amp;lt;90,'red',if($(v_metric_5)&amp;lt;95,'yellow',if($(v_metric_5)&amp;lt;=100,'green','gray')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 08:21:24 GMT</pubDate>
    <dc:creator>adiarnon</dc:creator>
    <dc:date>2018-10-29T08:21:24Z</dc:date>
    <item>
      <title>set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141015#M20986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i want to set a variable in the script that have-&lt;/P&gt;&lt;P&gt;if($(v_metric_5)&amp;lt;90,'red',if($(v_metric_5)&amp;lt;95,'yellow',if($(v_metric_5)&amp;lt;=100,'green','gray')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 08:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141015#M20986</guid>
      <dc:creator>adiarnon</dc:creator>
      <dc:date>2018-10-29T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141016#M20987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do not cross-post (post the exact same question multiple times) as it is counter-productive. Read the Community guidelines and do your best to follow them &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 08:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141016#M20987</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-10-29T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141017#M20988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi adi, one way is using an alternative character for simple quotes and dollars, and use replace to reset to original characters, ie. using | as simple quote and # as dollar:&lt;/P&gt;&lt;P&gt;LET VarName =Replace(Replace(&lt;/P&gt;&lt;P&gt;'if(#(v_metric_5)&amp;lt;90,|red|,if(#(v_metric_5)&amp;lt;95,|yellow|,if(#(v_metric_5)&amp;lt;=100,|green|,|gray|)))'&lt;/P&gt;&lt;P&gt;,'|',Chr(39)), '#', '$');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 08:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141017#M20988</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-10-29T08:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141018#M20989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(v_metric_5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;00,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(v_metric_5&amp;lt;95&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(v_metric_5&amp;lt;=100&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Blue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 08:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-a-variable/m-p/141018#M20989</guid>
      <dc:creator>dsharmaqv</dc:creator>
      <dc:date>2018-10-29T08:36:13Z</dc:date>
    </item>
  </channel>
</rss>

