<?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 Create Variable - IF Statement - other method? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1763443#M59036</link>
    <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Seems like a simple question but I might be overlooking something.&lt;/P&gt;&lt;P&gt;I am creating the following variable:&lt;/P&gt;&lt;P&gt;vProfit&lt;/P&gt;&lt;P&gt;My expression is :&lt;/P&gt;&lt;P&gt;=IF(ProductProfitID=1,2.5,IF(ProductProfitID=2,3.25,4))&lt;/P&gt;&lt;P&gt;Is there another method / function I can do in which assign a value to the vProfit based upon the ProductProfitID&lt;/P&gt;&lt;P&gt;(ProductProfitID can be 1,2,3 or 4) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Jerry&lt;/P&gt;</description>
    <pubDate>Sat, 21 Nov 2020 10:44:58 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2020-11-21T10:44:58Z</dc:date>
    <item>
      <title>Create Variable - IF Statement - other method?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1763443#M59036</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Seems like a simple question but I might be overlooking something.&lt;/P&gt;&lt;P&gt;I am creating the following variable:&lt;/P&gt;&lt;P&gt;vProfit&lt;/P&gt;&lt;P&gt;My expression is :&lt;/P&gt;&lt;P&gt;=IF(ProductProfitID=1,2.5,IF(ProductProfitID=2,3.25,4))&lt;/P&gt;&lt;P&gt;Is there another method / function I can do in which assign a value to the vProfit based upon the ProductProfitID&lt;/P&gt;&lt;P&gt;(ProductProfitID can be 1,2,3 or 4) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Jerry&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 10:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1763443#M59036</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-11-21T10:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable - IF Statement - other method?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1763449#M59037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24530"&gt;@jerryr125&lt;/a&gt;, you can also use Pick():&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Pick(ProductProfitID
  ,2.5
  ,3.25
  ,//value for 3
  ,//value for 4
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 21 Nov 2020 11:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1763449#M59037</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-11-21T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable - IF Statement - other method?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1764969#M59150</link>
      <description>&lt;P&gt;Works - thank you&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM#(PICK(ProductProfitID,45,25,35,80),'#0.00')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Variable-IF-Statement-other-method/m-p/1764969#M59150</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-11-27T14:22:32Z</dc:date>
    </item>
  </channel>
</rss>

