Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
marieclaire
Creator
Creator

What is the syntax for an outer join ?

Hello

A question of beginner : how can i make an outer join for these 2 tables ?

I tried to use the syntax

join (tab1) LOAD * FROM filename.csv

For each key (@CLE_Site), and each month, i want to have one table with all values.

I also have a problem with the date format of both tables.

Here is an exemple of dataset and qw.

Thank you for your help.

Marie-Claire

14 Replies
evan_kurowski
Specialist
Specialist

Hello Marie,

Actually looking at it once more, let's expand your keying system to an even finer granularity:

FROM: Site + Year

TO: Site + Year + Month

 

Bilan:
LOAD
AutoNumberHash128 (d_site,d_time_year & num (d_time_month,'00') ) AS %KEY//key is compound using @CLE_Site + Année + Mois
d_site as @CLE_Site,
d_time_year as Année,
num (d_time_month,'00') as Mois,
m_visits,
m_page_views,
m_time_spent,
m_time_spent_per_pages,
m_entry_rate,
m_entering_visits,
m_time_spent_per_visits,
%Key_DataFeed_1F0D62CF450928BF   // Key to parent table: DataFeed
FROM (XmlSimple, Table is [DataFeed/DataSet/Rows/Row]);


Visiteurs:
LOAD
AutoNumberHash128(Sites,Left(Subfield(FileBaseName(),'_',3),6)) AS %KEY//key is compound using @CLE_Site + Année + Mois_Visiteurs

//Sites as @CLE_Site, //** take from table Bilan
//Left(Subfield(FileBaseName(),'_',3),4) as Année, //** take from table Bilan
//Mid(Subfield(FileBaseName(),'_',-1),5,2) as Mois_Visiteurs, //** take from table Bilan

Visiteurs_Uniques_c,
Visiteurs_Uniques_tous
FROM

(
txt, codepage is 1252, embedded labels, delimiter is ';', msq
);

 

 


qlikviewwizard
Master II
Master II

Hi,

Please check the below threads:

What are joins

Joins and Lookups

marieclaire
Creator
Creator
Author

Thank you very much Evan.

Thank you for your help.

marieclaire
Creator
Creator
Author

Thank you Arjun.

Sure, I will read it !

marieclaire
Creator
Creator
Author

That is very helpfull : everything on a single sheet !

Thank you very much Enrique.