<?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 Newbie question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1546968#M439929</link>
    <description>&lt;P&gt;Hi I'm pretty new on qlikview, but I'm trying to code something pretty simple.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a ranking on a join of 2 tables.&lt;/P&gt;&lt;P&gt;Temp: is the table that has the data&lt;/P&gt;&lt;P&gt;LFA1: is the table that has the other set of data&lt;/P&gt;&lt;P&gt;Tabla: is the table with all the info I wanted&lt;/P&gt;&lt;P&gt;Rank: is the table where I'm trying to have everything sorted (after this part of the script works I would add some ranking info)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i built is this:&lt;/P&gt;&lt;PRE&gt;Binary [c:\users\fernando.pinto\desktop\fdo\qlikview\modelos\al 15-02\compras fi pruebas fernando.qvw];

SET ThousandSep=',';
SET DecimalSep='.';
SET MoneyThousandSep=',';
SET MoneyDecimalSep='.';
SET MoneyFormat='£#,##0.00;-£#,##0.00';
SET TimeFormat='hh:mm:ss';
SET DateFormat='DD/MM/YYYY';
SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='en-GB';
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';
SET QVDPATH='c:\users\fernando.pinto\desktop\fdo\qlikview\modelos\al 15-02\compras fi pruebas fernando.qvw';


TablaMaterial:
LOAD Material as 'CodigoSAP',
     Familia as 'Familia_Material', 
     Descripcion as 'Description_Mat', 
     CodMaterialSAP as 'Material_MATNR'
FROM
[L:\01_Administracion y Finanzas\03_Control de Gestion\01_Comun\Fernando Pinto\Qlikview\Tablas\Maestro Inventario SAP.xlsx]
(ooxml, embedded labels, table is Hoja1);



Load 
MATKL,
Material_MATNR,
MFRPN

Resident MARA;

Left Join(TablaMaterial)
LOAD
Material_MATNR;

TEMP:
Load *
Resident Ineficiencia;


Join (LFA1)
Load
proveedor_LIFNR,
NAME1 as Nombre_Proveedor;

Tabla:
NoConcatenate
load *
Resident TEMP;

Drop Table TEMP;


RANK:
Load 
Nombre_Proveedor,
PERIODOPROVEEDOR, 
RowNo() as Rank 
Resident TEMP 
ORDER BY PERIODOPROVEEDOR DESC;


&lt;/PRE&gt;&lt;P&gt;But I get errors that it doesn't find the tables I created ...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 14:22:07 GMT</pubDate>
    <dc:creator>FPC</dc:creator>
    <dc:date>2019-02-20T14:22:07Z</dc:date>
    <item>
      <title>Newbie question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1546968#M439929</link>
      <description>&lt;P&gt;Hi I'm pretty new on qlikview, but I'm trying to code something pretty simple.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a ranking on a join of 2 tables.&lt;/P&gt;&lt;P&gt;Temp: is the table that has the data&lt;/P&gt;&lt;P&gt;LFA1: is the table that has the other set of data&lt;/P&gt;&lt;P&gt;Tabla: is the table with all the info I wanted&lt;/P&gt;&lt;P&gt;Rank: is the table where I'm trying to have everything sorted (after this part of the script works I would add some ranking info)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i built is this:&lt;/P&gt;&lt;PRE&gt;Binary [c:\users\fernando.pinto\desktop\fdo\qlikview\modelos\al 15-02\compras fi pruebas fernando.qvw];

SET ThousandSep=',';
SET DecimalSep='.';
SET MoneyThousandSep=',';
SET MoneyDecimalSep='.';
SET MoneyFormat='£#,##0.00;-£#,##0.00';
SET TimeFormat='hh:mm:ss';
SET DateFormat='DD/MM/YYYY';
SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='en-GB';
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';
SET QVDPATH='c:\users\fernando.pinto\desktop\fdo\qlikview\modelos\al 15-02\compras fi pruebas fernando.qvw';


TablaMaterial:
LOAD Material as 'CodigoSAP',
     Familia as 'Familia_Material', 
     Descripcion as 'Description_Mat', 
     CodMaterialSAP as 'Material_MATNR'
FROM
[L:\01_Administracion y Finanzas\03_Control de Gestion\01_Comun\Fernando Pinto\Qlikview\Tablas\Maestro Inventario SAP.xlsx]
(ooxml, embedded labels, table is Hoja1);



Load 
MATKL,
Material_MATNR,
MFRPN

Resident MARA;

Left Join(TablaMaterial)
LOAD
Material_MATNR;

TEMP:
Load *
Resident Ineficiencia;


Join (LFA1)
Load
proveedor_LIFNR,
NAME1 as Nombre_Proveedor;

Tabla:
NoConcatenate
load *
Resident TEMP;

Drop Table TEMP;


RANK:
Load 
Nombre_Proveedor,
PERIODOPROVEEDOR, 
RowNo() as Rank 
Resident TEMP 
ORDER BY PERIODOPROVEEDOR DESC;


&lt;/PRE&gt;&lt;P&gt;But I get errors that it doesn't find the tables I created ...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1546968#M439929</guid>
      <dc:creator>FPC</dc:creator>
      <dc:date>2019-02-20T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1546976#M439930</link>
      <description>&lt;P&gt;Many times when a table is not found, it means that the table needs a noconcatenate in front of load.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1546976#M439930</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-02-20T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1547188#M439935</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When you create the table "TEMP" use NoConcatenate&lt;BR /&gt;If you don't use Noconcatenate your table Temp is concatenating with the table Ineficiencia and the table TEMP will never exist&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ACC</description>
      <pubDate>Thu, 21 Feb 2019 05:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1547188#M439935</guid>
      <dc:creator>andrescc</dc:creator>
      <dc:date>2019-02-21T05:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1548150#M440028</link>
      <description>&lt;P&gt;Thx for the answer, but can you show me how the code should look like, I'm kind of confused, because it still shows errors.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-question/m-p/1548150#M440028</guid>
      <dc:creator>FPC</dc:creator>
      <dc:date>2019-02-22T14:38:08Z</dc:date>
    </item>
  </channel>
</rss>

