<?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: DATA not correct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123092#M914148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a map table that contains the LB/LBopex/opex category (excel file)&lt;/P&gt;&lt;P&gt;and I have a table from the data base&amp;nbsp; that contains only the field LB, as a result I need to&amp;nbsp; that the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;F2_DA_BC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;contains the LB/LBopex/opex category.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How to do that without &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;duplicate records pb&lt;/SPAN&gt;? please&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 10:48:11 GMT</pubDate>
    <dc:creator>master_student</dc:creator>
    <dc:date>2016-06-03T10:48:11Z</dc:date>
    <item>
      <title>DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123090#M914146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I hope all is well. Could you please try to help me, my script runs well but the data in not correct comparing with the data in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used apply map because I have to map the LB and LBopex fields from the '&lt;SPAN style="font-size: 13.3333px;"&gt;Table_Correspondance'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the result in one table that contains LB and the corresponding LBopex , I used a left join to also map the opex category with the LBopew in the same table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The amout in QV is superior to the amout in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you assist me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is bellow :&lt;/P&gt;&lt;P&gt;maptable:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; trim (lower([LB / ERP]))as LB,&lt;/P&gt;&lt;P&gt;trim(lower([LB / Budget]))as LBopex&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[xx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Table_Correspondance);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DA_BC:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Replace( LB,' ' ,'') as LB2,&lt;/P&gt;&lt;P&gt;Date(PO_APPROVED_DATE, 'DD/MM/YYYY')as Date_PO,&lt;/P&gt;&lt;P&gt;SEGMENT2 AS CDR ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from *****&lt;/P&gt;&lt;P&gt;WHERE ****&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Replace( LB,' ' ,'') as LB2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(CANCEL_DATE, 'DD/MM/YYYY') as Date_PO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEGMENT2 AS CDR ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;drop field LB FROM DA_BC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;SUIVI_DA_BC:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;trim(lower(LB2)) as LB,&lt;/P&gt;&lt;P&gt;AutoNumber( MakeDate( year(date([Date_PO],'DD/MM/YYYY')), Month(date([Date_PO],'DD/MM/YYYY')), day(date([Date_PO],'DD/MM/YYYY')) ) , '%Date ID') as&amp;nbsp; [%Date ID]&lt;/P&gt;&lt;P&gt;Resident DA_BC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;F_DA_BC:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;ApplyMap('maptable',LB) as LBopex&lt;/P&gt;&lt;P&gt;resident SUIVI_DA_BC;&lt;/P&gt;&lt;P&gt;DROP Table DA_BC;&lt;/P&gt;&lt;P&gt;DROP Table SUIVI_DA_BC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;F2_DA_BC:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident F_DA_BC;&lt;/P&gt;&lt;P&gt;drop table F_DA_BC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field LB2 from F2_DA_BC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (F2_DA_BC)&lt;/P&gt;&lt;P&gt;mapt:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(lower([LB / Budget] ))as LBopex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpEx_Category,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(lower([LB / ERP])) as LB&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[---]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Table_Correspondance);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123090#M914146</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123091#M914147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A JOIN may duplicate records, I think you already know this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would suggest to check if records have been duplicated by the JOIN and then try to avoid the JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 10:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123091#M914147</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-03T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123092#M914148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a map table that contains the LB/LBopex/opex category (excel file)&lt;/P&gt;&lt;P&gt;and I have a table from the data base&amp;nbsp; that contains only the field LB, as a result I need to&amp;nbsp; that the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;F2_DA_BC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;contains the LB/LBopex/opex category.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How to do that without &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;duplicate records pb&lt;/SPAN&gt;? please&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 10:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123092#M914148</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-06-03T10:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123093#M914149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your map table contain only a unique line per LB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case, the JOIN should not duplicate lines from your data base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the case, you need to decide which line to map, you can then use a MAPPING table (this ensures a unique key / value mapping without record duplication), or a JOIN with a new table only showing unique keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 11:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123093#M914149</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-03T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123094#M914150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the map table contain a unique line per LB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 11:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123094#M914150</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-06-03T11:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: DATA not correct</title>
      <link>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123095#M914151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then double check if the number of records of your data base table has changed before vs after the JOIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it hasn't changed and you are aggregating only values from the data base table, the JOIN is probably not causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you calculate the amount in QV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 11:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATA-not-correct/m-p/1123095#M914151</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-03T11:15:04Z</dc:date>
    </item>
  </channel>
</rss>

