-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.xml
More file actions
93 lines (80 loc) · 3.65 KB
/
schema.xml
File metadata and controls
93 lines (80 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0"?>
<Schema name="Fact_Ventes">
<Cube name="Ventes" defaultMeasure="CA">
<Table name="Fact_Ventes" />
<!-- Dimension Date de début -->
<Dimension name="Date de début" foreignKey="temps_debut">
<Hierarchy name="Standard" hasAll="true" primaryKey="id_temps">
<Table name="Dim_Temps" />
<!-- Définition des niveaux -->
<Level name="Année" column="annee" uniqueMembers="true" />
<Level name="Trimestre" column="trimestre" />
<Level name="Mois" column="mois" />
<Level name="Jour" column="jour" />
<Level name="Heure" column="heure" />
<Level name="Minute" column="minute" />
</Hierarchy>
<Hierarchy name="Analyse par heures" hasAll="true" primaryKey="id_temps">
<Table name="Dim_Temps"/>
<Level name="Heure" column="heure" />
<Level name="Minutes" column="minute" />
</Hierarchy>
<Hierarchy name="Analyse par jours" hasAll="true" primaryKey="id_temps">
<Table name="Dim_Temps"/>
<Level name="Jour" column="jour" />
<Level name="Nom jour" column="jour_du_mois" />
</Hierarchy>
</Dimension>
<!-- Dimension Localisation -->
<Dimension name="Localisation" foreignKey="localisation_sk">
<Hierarchy name="Standard" hasAll="true" primaryKey="localisation_sk">
<Table name="Dim_Localisation" />
<!-- Définition des niveaux -->
<Level name="Région" column="region_name" />
<Level name="Département" column="departments_name" />
<Level name="Ville" column="nom_ville" />
<Level name="Code Postal" column="zip" />
</Hierarchy>
</Dimension>
<!-- Dimension Client -->
<Dimension name="Client" foreignKey="num_client">
<!-- Première hiérarchie contenant le 'Nom' -->
<Hierarchy name="ParNom" hasAll="true" primaryKey="num_client">
<Table name="Dim_Client" />
<!-- Définition des niveaux -->
<Level name="Nom" column="nom" />
<Level name="Prénom" column="prenom" />
<!-- ... autres niveaux si nécessaire -->
</Hierarchy>
<!-- Deuxième hiérarchie contenant la 'Ville' -->
<Hierarchy name="ParVille" hasAll="true" primaryKey="num_client">
<Table name="Dim_Client" />
<!-- Définition des niveaux -->
<Level name="Ville" column="ville" />
<Level name="Département" column="code_departement" />
<!-- ... autres niveaux si nécessaire -->
</Hierarchy>
</Dimension>
<!-- Dimension Prestation -->
<Dimension name="Prestation" foreignKey="prestation_sk">
<!-- Première hiérarchie contenant la 'Catégorie' -->
<Hierarchy name="ParCategorie" hasAll="true" primaryKey="prestation_sk">
<Table name="Dim_Prestation" />
<!-- Définition des niveaux -->
<Level name="Catégorie" column="categorie" />
</Hierarchy>
<!-- Deuxième hiérarchie contenant le 'Type' -->
<Hierarchy name="ParType" hasAll="true" primaryKey="prestation_sk">
<Table name="Dim_Prestation" />
<!-- Définition des niveaux -->
<Level name="Type" column="nom_prestation" />
</Hierarchy>
</Dimension>
<!-- Mesures -->
<Measure name="CA" column="prix" aggregator="sum" formatString="Standard" />
<Measure name="Prix de vente moyen" column="prix" aggregator="avg" formatString="Standard" />
<Measure name="Durée moyenne d'intervention" column="duration" aggregator="avg" formatString="Standard" />
<Measure name="Durée max d'intervention" column="duration" aggregator="max" formatString="Standard" />
<Measure name="Nombre de ventes" column="vente_sk" aggregator="count" formatString="Standard" />
</Cube>
</Schema>