<?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: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059482#M12169</link>
    <description>&lt;P&gt;Are you able to share the files?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 09:17:35 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2023-04-12T09:17:35Z</dc:date>
    <item>
      <title>Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059206#M12163</link>
      <description>&lt;P&gt;I am facing a problem with loading data into Qlik Sense and avoiding circular references and synthetic keys. I have tried the script provided below, but it is not working as expected. I would greatly appreciate it if someone could help me with this issue.&lt;/P&gt;
&lt;P&gt;Here is the script I am using:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Cities:
LOAD
    City,
    "City Code",
    Region,
    Latitude,
    Longitude,
    "Desc"
FROM [lib://Esercizio-1/Cities.xlsx]
(ooxml, embedded labels, table is Cities);

Customers:
LOAD
    Customer,
    "Customer Number",
    "City Code"
FROM [lib://Esercizio-1/Customers.xlsx]
(ooxml, embedded labels, table is Customer);


Items:
LOAD
    "Item Number",
    "Product Group",
    "Product Line",
    "Product Sub Group",
    "Product Type"
FROM [lib://Esercizio-1/Item master.xlsx]
(ooxml, embedded labels, table is [Item master]);



Sales:
LOAD
    "%KEY",
    Cost,
    "Customer Number",
    "Date" ,
    
    Date(Year(Date),Month(Date),Day(Date)) as DateKey,
    Day(Date) As Day,
    Month(Date) as Month,
    Month(Date) as MonthNbr,
    Week(Date) as Week,
    Ceil(Month(Date)/3) as Quarter,
    Year(Date) as Year,
    Year(Date) &amp;amp; Month(Date) as YearMonthNbr,
    Year(Date) &amp;amp; '-' &amp;amp; Month(Date) as YearMonth,

    GrossSales,
    "Invoice Date",
    "Invoice Number",
    "Item Desc",
    "Item Number",
    Margin,
    "Order Number",
    "Promised Delivery Date",
    Sales,
    "Sales Qty",
    "Sales Rep Number" as  "Sales Rep ID"
FROM [lib://Esercizio-1/Sales.xlsx]
(ooxml, embedded labels, table is Sales);


Manager:
LOAD
    Manager,
    "Manager Number",
    Path,
    "Sales Rep Name",
    "Sales Rep Name1",
    "Sales Rep Name2",
    "Sales Rep Name3",
    "Sales Rep ID"
FROM [lib://Esercizio-1/Sales rep.csv]
(txt, codepage is 28599, embedded labels, delimiter is ';', msq);

BudgetTable:
LOAD 
     "Product Type",
     Year,
     Region ,
     Budget
FROM [lib://Esercizio-2/Budget.xlsx]
(ooxml, embedded labels, table is Budget);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to know how to avoid circular references and synthetic keys when loading the BudgetTable.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 14:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059206#M12163</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-11T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059284#M12166</link>
      <description>&lt;P&gt;Just by looking, the best way would be to combine Sales and BudgetTable as they appear to be fact tables using forced concatenation. You could rename the Region field in Cities to &lt;STRONG&gt;Region as "City Region"&lt;/STRONG&gt; or comment out with your requirements in mind.&lt;/P&gt;
&lt;P&gt;Sales:&lt;BR /&gt;LOAD ...&lt;/P&gt;
&lt;P&gt;FROM [lib://Esercizio-1/Sales.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sales);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Concatenate(Sales)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;BudgetTable:&lt;BR /&gt;LOAD ...&lt;/P&gt;
&lt;P&gt;FROM [lib://Esercizio-2/Budget.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Budget);&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 09:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059284#M12166</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-12T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059474#M12168</link>
      <description>&lt;P&gt;It is intended to add a sheet to analyse sales performance against the company's budget, summarised in the file "Budget.xlsx", which contains the estimated sales values (budget) for each product group, for each year and by region.&lt;BR /&gt;Objectives of the exercise are:&lt;BR /&gt;1) Implement the loading of the budget data with the appropriate changes to the existing data model by evaluating, where necessary, adjustments to the source database&lt;BR /&gt;2) Add the "Sales performance vs Budget" sheet in which to implement the display of sales data in comparison with the budget data explorable by&lt;BR /&gt;- Year&lt;BR /&gt;- Product type&lt;BR /&gt;- Region&lt;BR /&gt;For the layout, you are free to adopt the data visualisation tools you consider most effective&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 08:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059474#M12168</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-12T08:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059482#M12169</link>
      <description>&lt;P&gt;Are you able to share the files?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 09:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059482#M12169</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-12T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059485#M12170</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/11aaNEBlRzn7OGWm2hwzREVLTDAaf3DR3?usp=sharing" target="_self"&gt;QLIK EXERCISES&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 09:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059485#M12170</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-12T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059581#M12171</link>
      <description>&lt;P&gt;Hope this can help.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;///*----------------------------------------------------------------------------------------
// Appending Region to temporary Customer table             
//----------------------------------------------------------------------------------------*/
Temp:
LOAD [Customer Number], 
     [City Code] 
FROM
[..Downloads\Customers.xlsx]
(ooxml, embedded labels, table is Customer);

Left Join(Temp)
LOAD [City Code], 
     Region
FROM
[..Downloads\Cities.xlsx]
(ooxml, embedded labels, table is Cities);
///*----------------------------------------------------------------------------------------
// Temporary Lookup table --- comparision field ([Customer Number])and mapping value field (Region)     
//----------------------------------------------------------------------------------------*/
RegionMap:
Mapping LOAD Distinct [Customer Number],
        Region

Resident Temp;

DROP Table Temp;    

//*----------------------------------------------------------------------------------------
// Temporary Lookup table ---  comparision field ([Item Number])and mapping value field ([Product Type]) 
//----------------------------------------------------------------------------------------*/
ProductTypeMap:
Mapping LOAD [Item Number], 
             [Product Type] 
FROM
[..Downloads\Item master.xlsx]
(ooxml, embedded labels, table is [Item master]);

//*----------------------------------------------------------------------------------------
// Sales and Budget combined      
//----------------------------------------------------------------------------------------*/
"Sales &amp;amp; Budget":
LOAD %KEY, 
     Cost, 
     [Customer Number] as %CustNo, 
     Date(Date) as %Date, 
//     Date,
     GrossSales, 
     [Invoice Date], 
     [Invoice Number], 
     [Item Desc], 
     [Item Number], 
     Margin, 
     [Order Number], 
     [Promised Delivery Date], 
     Num(Sales,'#,##0.00') as Sales, 
     [Sales Qty], 
     [Sales Rep Number] as %SalesRepID,
ApplyMap('ProductTypeMap',[Item Number]) as [Product Type],// Product type populated unto fact table
ApplyMap('RegionMap',[Customer Number]) as Region // // Region populated unto fact table
    
FROM
[..Downloads\Sales.xlsx]
(ooxml, embedded labels, table is Sales);

Concatenate("Sales &amp;amp; Budget")
Budget:
LOAD [Product Type], 
MakeDate(Year) as %Date,
     Region,
Num(Budget,'#,##0.00') as Budget

FROM
[..Downloads\Budget.xlsx]
(ooxml, embedded labels, table is Budget);

//*----------------------------------------------------------------------------------------
// Time period and time attributes   
//----------------------------------------------------------------------------------------*/
"Master Calendar": 
Load 
 TempDate AS %Date, 
 week(TempDate) As Week, 
 Year(TempDate) As Year, 
 Month(TempDate) As Month, 
 Day(TempDate) As Day, 
 'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, 
 Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, 
 WeekDay(TempDate) as WeekDay 
;

//=== Generate a temp table of dates === 
LOAD 
 date(mindate + IterNo()) AS TempDate
 ,maxdate // Used in InYearToDate() above, but not kept 
WHILE mindate + IterNo() &amp;lt;= maxdate;

//=== Get min/max dates from Field ===/
LOAD
 min(FieldValue('%Date', recno()))-1 as mindate,
 max(FieldValue('%Date', recno())) as maxdate
AUTOGENERATE FieldValueCount('%Date');&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunPierre_1-1681301352942.png" style="width: 727px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104710i5FD26E091151686E/image-dimensions/727x619?v=v2" width="727" height="619" role="button" title="BrunPierre_1-1681301352942.png" alt="BrunPierre_1-1681301352942.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059581#M12171</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-12T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059590#M12172</link>
      <description>&lt;P&gt;But the Budget field is now empty/null. How is it possible?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059590#M12172</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-12T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059754#M12173</link>
      <description>&lt;P&gt;On the table viewer it looks sparsely populated, that's the result of concatenating. i.e. adding rows to an existing table.&lt;/P&gt;
&lt;P&gt;Having said that, the dataset are still relatable.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunPierre_5-1681326156975.png" style="width: 483px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104762iFBAA9FDC30AB7BCE/image-dimensions/483x664?v=v2" width="483" height="664" role="button" title="BrunPierre_5-1681326156975.png" alt="BrunPierre_5-1681326156975.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2059754#M12173</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-12T21:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060159#M12179</link>
      <description>&lt;P&gt;What If I would like to maintain all fields to obtain same results in the others sheets?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060159#M12179</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-13T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060281#M12181</link>
      <description>&lt;P&gt;Do you mean the other tables? If yes, you can add it to the model.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 21:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060281#M12181</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-13T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading data into Qlik Sense and avoiding circular references and synthetic keys</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060519#M12183</link>
      <description>&lt;P&gt;Ok this is my final solution, thanks a lot for help.&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;// Applying region to the temporary customer table&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Temp:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD [Customer Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[City Code]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Customers.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Customer);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Left Join(Temp)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD [City Code], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Region&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Cities.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Cities);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;// Temporary lookup table --- comparison field and mapping value field&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RegionMap:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Mapping LOAD Distinct [Customer Number],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Region&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident Temp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DROP Table Temp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;// Temporary lookup table --- comparison field and mapping value field&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ProductTypeMap:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Mapping LOAD [Item Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Product Type]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Item master.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is [Item master]);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;// Sales and budget combinations&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales &amp;amp; Budget":&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD %KEY, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cost, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Customer Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Num(Year(Date),'0000') &amp;amp; Num(Month(Date),'00') &amp;amp; Num(Day(Date),'00') as DateKey,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Day(Date) As Day,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Month(Date) as Month,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Num(Month(Date)) as MonthNbr,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Week(Date) as Week,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'Q' &amp;amp; Ceil(Month(Date)/3) as Quarter,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year(Date) as Year,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year(Date) &amp;amp; Num(Month(Date),'00') as YearMonthNbr,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year(Date) &amp;amp; '-' &amp;amp; Month(Date) as YearMonth,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GrossSales, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Invoice Date], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Invoice Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Item Desc], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Item Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Margin, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Order Number], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Promised Delivery Date], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Sales, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Sales Qty], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Sales Rep Number] as [Sales Rep ID],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ApplyMap('ProductTypeMap',[Item Number]) as [Product Type],// Product Type popolato nella tabella dei fatti&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ApplyMap('RegionMap',[Customer Number]) as Region // // Region popolato dalla tabella dei fatti&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Sales.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Sales);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Concatenate("Sales &amp;amp; Budget")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Budget:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD [Product Type], &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Region, //Concatenates with Region in sales, in turn brought in with ApplyMap()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Budget&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es2Debug/Budget.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Budget);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cities:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;City,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"City Code",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//Region, removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Latitude,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Longitude,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Desc"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Cities.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Cities);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Customer:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD Distinct&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Customer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Customer Number],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"City Code"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Customers.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Customer);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales rep":&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Manager,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Manager Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Path,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales Rep Name",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales Rep Name1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales Rep Name2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales Rep Name3",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Sales Rep ID"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Sales rep.csv]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(txt, codepage is 28599, embedded labels, delimiter is ';', msq);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Item master]:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;// "Product Type", Removed &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Item Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Product Group",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Product Line",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Product Sub Group"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://Es1Debug/Item master.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is [Item master]);&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-with-loading-data-into-Qlik-Sense-and-avoiding-circular/m-p/2060519#M12183</guid>
      <dc:creator>cepp0</dc:creator>
      <dc:date>2023-04-14T12:38:16Z</dc:date>
    </item>
  </channel>
</rss>

