<?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: Adding calculated fields to table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787161#M278460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Massimo, I've tried the date field in the select statement before, for some reason this doesn't work and give me this error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="280" src="https://community.qlik.com/legacyfs/online/80505_pastedImage_0.png" style="width: 457px; height: 280.096774193548px;" width="457" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 21:31:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-11T21:31:41Z</dc:date>
    <item>
      <title>Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787154#M278453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm battling to add multiple calculated fields (some of them depends on the previous calculated field) to my table:&lt;/P&gt;&lt;P&gt;Heres the data with comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [TCC2016Q;DBQ=TCC2016Q];//data from TCC2016 database&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(DocumentType =3, fabs(Qty), if(DocumentType =4, -fabs(Qty), Qty)) as SalesQty; &lt;SPAN style="color: #ff0000;"&gt;(I managed to at least load this field, but get errors when I try to do more here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HistoryLinesALL:&amp;nbsp; //data from TCC2016 and TCC2015 database&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT CaseLotCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostPrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostSyncDone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DDate) as Year, &lt;SPAN style="color: #ff0000;"&gt; (I managed to add these 3 date-related fields at least!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(DDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(DDate) as Day,&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;FROM HistoryLines;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [TCC2015Q;DBQ=TCC2015Q]; &lt;SPAN style="color: #ff0000;"&gt;(Data from second database...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate (HistoryLinesALL)&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(DocumentType =3, fabs(Qty), if(DocumentType =4, -fabs(Qty), Qty)) as SalesQty;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostPrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostSyncDone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(DDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(DDate) as Day,&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;FROM HistoryLines;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Now here I want to add more fields, but it's just not working (I tried preceding load as well), such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;LEFT JOIN (HistoryLinesALL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; Date(monthstart(DDate), 'MM-YYYY') as MonthYear;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; Sum((([UnitPrice]*[SalesQty])-(([UnitPrice]*[SalesQty])*([DiscountPercentage]/10000)))) as SalesAmount;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; etc....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Resident HistoryLinesALL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 19:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787154#M278453</guid>
      <dc:creator />
      <dc:date>2015-03-11T19:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787155#M278454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could add one of the calculated fields you want to create to this bit :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(DocumentType =3, fabs(Qty), if(DocumentType =4, -fabs(Qty), Qty)) as SalesQty; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;(I managed to at least load this field, but get errors when I try to do more here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Run it and post the bit from the log file of the load statement when [if?] it fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 20:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787155#M278454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-11T20:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787156#M278455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are doing the left join, which fields are you left joining on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;LEFT JOIN (HistoryLinesALL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;LOAD &lt;SPAN style="color: #000000;"&gt;do you have a * here????&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; Date(monthstart(DDate), 'MM-YYYY') as MonthYear;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; Sum((([UnitPrice]*[SalesQty])-(([UnitPrice]*[SalesQty])*([DiscountPercentage]/10000)))) as SalesAmount;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; etc....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Resident HistoryLinesALL;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 20:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787156#M278455</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T20:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787157#M278456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;change in bold&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ODBC CONNECT32 TO [TCC2016Q;DBQ=TCC2016Q];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;HistoryLinesALL:&lt;/STRONG&gt;&amp;nbsp; //data from TCC2016 and TCC2015 database&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(DocumentType =3, fabs(Qty), if(DocumentType =4, -fabs(Qty), Qty)) as SalesQty;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT CaseLotCode,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostPrice,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostSyncDone,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Date(monthstart(DDate), 'MM-YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DDate) as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(DDate) as Month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(DDate) as Day,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;etc&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM HistoryLines;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ODBC CONNECT32 TO [TCC2015Q;DBQ=TCC2015Q];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate (HistoryLinesALL)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(DocumentType =3, fabs(Qty), if(DocumentType =4, -fabs(Qty), Qty)) as SalesQty;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostPrice,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CostSyncDone,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(monthstart(DDate), 'MM-YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DDate) as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(DDate) as Month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(DDate) as Day,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;etc.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM HistoryLines;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;LEFT JOIN (HistoryLinesALL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #575757;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #575757; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #575757; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #575757;"&gt;Sum((([UnitPrice]*[SalesQty])-(([UnitPrice]*[SalesQty])*([DiscountPercentage]/10000)))) as SalesAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Resident HistoryLinesALL&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="color: #000000;"&gt;group by MonthYear;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 20:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787157#M278456</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-11T20:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787158#M278457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80504_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787158#M278457</guid>
      <dc:creator />
      <dc:date>2015-03-11T21:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787159#M278458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunindia, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added it now, but get the error - see reply to Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Join statement now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (HistoryLinesALL)&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(monthstart(DDate), 'MM-YYYY') as MonthYear;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum((([UnitPrice]*[SalesQty])-(([UnitPrice]*[SalesQty])*([DiscountPercentage]/10000)))) as SalesAmount&lt;/P&gt;&lt;P&gt;Resident HistoryLinesALL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787159#M278458</guid>
      <dc:creator />
      <dc:date>2015-03-11T21:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787160#M278459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either remove the &lt;EM&gt;Sum&lt;/EM&gt; wrapping the expression or add a &lt;EM&gt;Group By&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787160#M278459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-11T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787161#M278460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Massimo, I've tried the date field in the select statement before, for some reason this doesn't work and give me this error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="280" src="https://community.qlik.com/legacyfs/online/80505_pastedImage_0.png" style="width: 457px; height: 280.096774193548px;" width="457" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787161#M278460</guid>
      <dc:creator />
      <dc:date>2015-03-11T21:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787162#M278461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you'll have to guide me here??&amp;nbsp; I am trying to add the "SalesAmount" and "MonthYear" fields to all the records (2 new columns).&amp;nbsp; From your comment I'm pretty sure I'm not applying the "join left" command correct and need to add existing fields on there??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know what you think can work here/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787162#M278461</guid>
      <dc:creator />
      <dc:date>2015-03-11T21:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787163#M278462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try, now close to midnight, will let you know if it works...&lt;/P&gt;&lt;P&gt;Bill, does the "group by" command not cause in accurate data?&amp;nbsp; I'm trying to add a field for ever record in the existing table...SalesAmount and MonthYear must be additional fields for every record....so do I then "group by" by adding all the fields in the "group by" command???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, I'm newby!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cherio (going to bed now!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787163#M278462</guid>
      <dc:creator />
      <dc:date>2015-03-11T21:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding calculated fields to table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787164#M278463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill, when I remove the "sum" I get zero value through...but I am not adding any fields or group by function..only the calculated fields.&amp;nbsp; I suspect I'm simply not understanding the Join function...can you help.&amp;nbsp; Here is my script at this stage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (HistoryLinesALL)&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(monthstart(DDate), 'MM-YYYY') as MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ([UnitPrice]*[SalesQty])-(([UnitPrice]*[SalesQty])*([DiscountPercentage]/10000)) as SalesAmount&lt;/P&gt;&lt;P&gt;Resident HistoryLinesALL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-calculated-fields-to-table/m-p/787164#M278463</guid>
      <dc:creator />
      <dc:date>2015-03-12T11:06:24Z</dc:date>
    </item>
  </channel>
</rss>

