diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-04-10 20:27:59 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-04-12 09:47:47 +0200 |
commit | c284321b1073e06481c63e2c061a1600fa68254d (patch) | |
tree | 87155166131f8bdfce92dbb5eb68e66b223fa1fd /examples | |
parent | 9e2dbe43abe97c4e60b158e5fa52172468a2afb8 (diff) |
Added filters expressions in the externals
Diffstat (limited to 'examples')
-rw-r--r-- | examples/externals_filters.toml | 22 | ||||
-rw-r--r-- | examples/importer_groupe.toml | 15 |
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] |