<?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: error: Field 'CostPerUnit' not found in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-Field-CostPerUnit-not-found/m-p/1832237#M1214652</link>
    <description>&lt;P&gt;You've used Qualify *, which means all fields will have the table name added preceding, e.g. Stock.CostPerUnit&lt;/P&gt;&lt;P&gt;For details, see &lt;A href="https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Qualify.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Qualify.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 15:34:20 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-08-30T15:34:20Z</dc:date>
    <item>
      <title>error: Field 'CostPerUnit' not found</title>
      <link>https://community.qlik.com/t5/QlikView/error-Field-CostPerUnit-not-found/m-p/1832230#M1214651</link>
      <description>&lt;P&gt;Hi everyonw. I am new in qlik. I don't know where is the problem. Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Qualify *;
Unqualify ItemID;

CampaingID_Map:
Mapping LOAD
    CampaignID,
    Name as NameofCampaign
FROM [lib://ExtractDB/Campaigns.qvd]
(qvd);


Salesnews:
Load
    *;
LOAD 
    (Sales - CostPerUnit) as Benefit;
LOAD
    ItemID,
    Date,
    CampaignID,
    DocumentNumber,
    StoreHanut as StoreCode,
    "Time",
    SalesmanID,
    if( Quantity&amp;gt;= 0, 'Sold', 'Return' ) as Status,
    ApplyMap('CampaingID_Map', CampaignID , 'No Campaign' ) as NameofCampaign,
    TotalPriceBeforVat,
    Quantity,
    (TotalPriceBeforVat*Quantity*1.17) as Sales
FROM [lib://ExtractDB/Salesnews.qvd] (qvd);

left Join

Stock:
LOAD
    ItemID,
    Cost as CostPerUnit
FROM [lib://ExtractDB/Stock.qvd]
(qvd);

Unqualify *;
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="edc_error"&gt;I want to add a new field call Benefit.(Sales-cost per unit) But Doesn't work!&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;thanks&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2021 15:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-Field-CostPerUnit-not-found/m-p/1832230#M1214651</guid>
      <dc:creator>ELI4</dc:creator>
      <dc:date>2021-08-30T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: error: Field 'CostPerUnit' not found</title>
      <link>https://community.qlik.com/t5/QlikView/error-Field-CostPerUnit-not-found/m-p/1832237#M1214652</link>
      <description>&lt;P&gt;You've used Qualify *, which means all fields will have the table name added preceding, e.g. Stock.CostPerUnit&lt;/P&gt;&lt;P&gt;For details, see &lt;A href="https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Qualify.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Qualify.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 15:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-Field-CostPerUnit-not-found/m-p/1832237#M1214652</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-08-30T15:34:20Z</dc:date>
    </item>
  </channel>
</rss>

