<?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: Create a new attribute from current attributes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1683129#M52016</link>
    <description>&lt;P&gt;Thank you very much, problem solved!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 08:42:54 GMT</pubDate>
    <dc:creator>Melon_96</dc:creator>
    <dc:date>2020-03-10T08:42:54Z</dc:date>
    <item>
      <title>Create a new attribute from current attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1682956#M51992</link>
      <description>&lt;P&gt;Hello to everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in Qlik Sense and I have a question, I hope you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I have a table named Product. In the Product table I have an attribute named Stock. This stock is going to be updated everyday and it has to options. The value of the stock can be Yes or Not. My goal is to create a new attribute in the table Product where if the value of stock is Yes the value of the new attribute is 1 and 0 if the value of stock is Not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create that new attribute from the table itself? If so, how can I create that new attribute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advanced!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1682956#M51992</guid>
      <dc:creator>Melon_96</dc:creator>
      <dc:date>2020-03-09T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new attribute from current attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1682992#M51995</link>
      <description>&lt;P&gt;Maybe i am misunderstanding some underlying complexity.&lt;/P&gt;&lt;P&gt;but typical way to do this is like below&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/if.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/if.htm&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;load attr1,
     . //Other columns/attributes
     ,
     Stock,
     if(Stock = 'Yes',1,0) as StockFlag
;
sql
load * from ProductTable;
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1682992#M51995</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-03-09T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new attribute from current attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1683129#M52016</link>
      <description>&lt;P&gt;Thank you very much, problem solved!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1683129#M52016</guid>
      <dc:creator>Melon_96</dc:creator>
      <dc:date>2020-03-10T08:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new attribute from current attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1683225#M52024</link>
      <description>&lt;P&gt;Mark the answer as solution please&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-attribute-from-current-attributes/m-p/1683225#M52024</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-03-10T11:18:19Z</dc:date>
    </item>
  </channel>
</rss>

