aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/externals_filters.toml22
-rw-r--r--examples/importer_groupe.toml15
2 files changed, 28 insertions, 9 deletions
diff --git a/examples/externals_filters.toml b/examples/externals_filters.toml
new file mode 100644
index 0000000..78e6603
--- /dev/null
+++ b/examples/externals_filters.toml
@@ -0,0 +1,22 @@
+dataset = "dataset.toml"
+
+[source]
+ name = "source"
+
+# This show how the filter in external works.
+# Only the lines with Column C = 'France' will be
+# matched.
+[externals.source-target]
+ intern_key = ":source.A"
+ extern_key = ":A"
+ filters = [
+ ":C = 'France'"
+ ]
+
+[sheet]
+ columns = [
+ ":A",
+ ":C",
+ ":source-target.A",
+ ":source-target.C",
+ ]
diff --git a/examples/importer_groupe.toml b/examples/importer_groupe.toml
index eb2f7e6..ea2c7de 100644
--- a/examples/importer_groupe.toml
+++ b/examples/importer_groupe.toml
@@ -1,15 +1,12 @@
-# Cet exemple permet de montrer la combinaison de fonction de groupe avec des
-# filtres.
+# This file show how the groups can be used in filters.
+#
+# We search for the greatest value of units sold in France. In order to get the
+# expected result, we need to filter first the country in France before
+# looking for the greatest value.
-# On recherche ici le plus grand nombre d’unitées vendues en France.
-# Pour que le résultat soit conforme à l’attendu, il faut que l’application
-# commence par filtrer les lignes qui concernent la France, avant de chercher
-# la ligne contenant le plus grand nombre d’unités.
-
-version = 1
+dataset = "dataset.toml"
[source]
- file = "financial.xlsx"
name = "source"
[sheet]