Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database footer field calculations support template-based calculations https://github.com/siyuan-note/siyuan/issues/14394

Danielf9abbe26f589
diff --git a/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json b/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json
index 0db3b577b0..eaf1a3498e 100644
--- a/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json
+++ b/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json
@@ -1 +1 @@
-{"20200923234011-ieuun1p":1,"20200923234602-gy54e67":10,"20200923234731-h3zkwm2":3,"20200924093441-ft2rhps":1,"20200924095938-a9p5450":2,"20200924100110-vcg96wy":1,"20200924100635-ms0p9lb":7,"20200924100717-yzwzn64":22,"20200924100744-br924ar":11,"20200924100808-j9sddk9":2,"20200924100906-0u4zfq3":4,"20200924100950-9op5xi1":19,"20200924101106-19z4kaa":1,"20200924101200-gss5vee":4,"20200924101225-k254i8g":2,"20200924101256-f8b1sbi":3,"20201004194026-s8h2cog":20,"20201117112518-dott91x":6,"20201121224345-rc27qvo":11,"20201204184532-3qm9l8n":12,"20201210233038-3xr19g5":5,"20201222100222-q47d64s":3,"20201222100339-i5hzcph":2,"20201227201128-m1wrouw":21,"20201227201751-gv0fpx2":23,"20210110181011-fbhoesf":6,"20210117215840-jcl17fx":4,"20210127203829-qe2mzof":13,"20210331201142-4g923es":15,"20210505164949-c085p1d":3,"20210613191509-cbkxcbz":7,"20210615213222-vs5tzbd":16,"20210721112159-9p645xm":1,"20210721112206-mhr9wxi":2,"20210721160238-yvhbh0h":4,"20210808180303-6yi0dv5":1,"20210808180303-axh6q1d":4,"20210808180303-h361q1i":2,"20210808180303-l3qg72k":3,"20210808180303-xaduj2o":5,"20210824202056-udkf7wg":9,"20211010212318-3wx2kqb":14,"20220105101227-n5zpr1a":6,"20220415232231-pqcizol":1,"20220628204454-hhxohv5":2,"20220708103401-mgydrfg":3,"20221016204105-qx2aq0g":3,"20221223221636-ms2b4w9":17,"20230104152135-1iei0xa":24,"20230106104821-9nfphwm":1,"20230304000547-ibldj1z":18,"20230405172236-pg3l9eu":6,"20230429115711-ejbts4s":5,"20230506205948-yah52eb":10,"20230802114825-2jkkct7":5,"20230805231614-vqn28eh":7,"20230805231816-h1z9mpc":2,"20230805232018-hgrq0ju":1,"20230805232134-3d6mx2k":2,"20240113110040-7sgw8kl":2,"20240119211017-1vbbt95":4,"20240119212048-0huuevw":5,"20240208172514-9dsv6na":8,"20240317202444-5txwumu":9,"20240517031132-jmr5ihm":25,"20260612192252-sgw2paw":26,"20260613155453-sgecaav":0,"20260613212028-gozdm4e":5,"20260614104204-staofnm":27,"20260614113113-ss78888":7,"20260614113156-1jveexn":8}
\ No newline at end of file
+{"20200923234011-ieuun1p":1,"20200923234602-gy54e67":10,"20200923234731-h3zkwm2":3,"20200924093441-ft2rhps":1,"20200924095938-a9p5450":2,"20200924100110-vcg96wy":1,"20200924100635-ms0p9lb":7,"20200924100717-yzwzn64":22,"20200924100744-br924ar":11,"20200924100808-j9sddk9":2,"20200924100906-0u4zfq3":4,"20200924100950-9op5xi1":19,"20200924101106-19z4kaa":1,"20200924101200-gss5vee":4,"20200924101225-k254i8g":2,"20200924101256-f8b1sbi":3,"20201004194026-s8h2cog":20,"20201117112518-dott91x":6,"20201121224345-rc27qvo":11,"20201204184532-3qm9l8n":12,"20201210233038-3xr19g5":5,"20201222100222-q47d64s":3,"20201222100339-i5hzcph":2,"20201227201128-m1wrouw":21,"20201227201751-gv0fpx2":23,"20210110181011-fbhoesf":6,"20210117215840-jcl17fx":4,"20210127203829-qe2mzof":13,"20210331201142-4g923es":15,"20210505164949-c085p1d":3,"20210613191509-cbkxcbz":7,"20210615213222-vs5tzbd":16,"20210721112159-9p645xm":1,"20210721112206-mhr9wxi":2,"20210721160238-yvhbh0h":4,"20210808180303-6yi0dv5":1,"20210808180303-axh6q1d":4,"20210808180303-h361q1i":2,"20210808180303-l3qg72k":3,"20210808180303-xaduj2o":5,"20210824202056-udkf7wg":9,"20211010212318-3wx2kqb":14,"20220105101227-n5zpr1a":6,"20220415232231-pqcizol":1,"20220628204454-hhxohv5":2,"20220708103401-mgydrfg":3,"20221016204105-qx2aq0g":3,"20221223221636-ms2b4w9":17,"20230104152135-1iei0xa":24,"20230106104821-9nfphwm":1,"20230304000547-ibldj1z":18,"20230405172236-pg3l9eu":6,"20230429115711-ejbts4s":5,"20230506205948-yah52eb":10,"20230802114825-2jkkct7":5,"20230805231614-vqn28eh":7,"20230805231816-h1z9mpc":2,"20230805232018-hgrq0ju":1,"20230805232134-3d6mx2k":2,"20240113110040-7sgw8kl":2,"20240119211017-1vbbt95":4,"20240119212048-0huuevw":5,"20240208172514-9dsv6na":8,"20240317202444-5txwumu":9,"20240517031132-jmr5ihm":25,"20260612192252-sgw2paw":26,"20260613155453-sgecaav":0,"20260613212028-gozdm4e":5,"20260614104204-staofnm":27,"20260614113113-ss78888":7,"20260614113156-1jveexn":8,"20260617123409-cmygnqa":1}
\ No newline at end of file
diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na/20260617123409-cmygnqa.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na/20260617123409-cmygnqa.sy
new file mode 100644
index 0000000000..8d381d8b3f
--- /dev/null
+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na/20260617123409-cmygnqa.sy
@@ -0,0 +1,1077 @@
+{
+ "ID": "20260617123409-cmygnqa",
+ "Spec": "2",
+ "Type": "NodeDocument",
+ "Properties": {
+ "id": "20260617123409-cmygnqa",
+ "title": "Table Calculation",
+ "type": "doc",
+ "updated": "20260617123642"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-x0dt9wd",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123606-x0dt9wd",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Overview"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-9x9bs6v",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-9x9bs6v",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The bottom of a database table supports summary calculations for each column. Click the calculation bar at the bottom of a column to choose a calculation method. All field types except line number support table calculations."
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-ijcp7v8",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123606-ijcp7v8",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Built-in Calculations"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-i7bgwsl",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-i7bgwsl",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The available calculation methods are displayed automatically based on the field type:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-tq23wtj",
+ "Type": "NodeList",
+ "ListData": {},
+ "Properties": {
+ "id": "20260617123606-tq23wtj",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-9dhbf6h",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123606-9dhbf6h",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-0sm14vv",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-0sm14vv",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "Count"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ": total, not empty, distinct"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-7u9ljgh",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123606-7u9ljgh",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-3re790m",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-3re790m",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "Percentage"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ": percent empty, percent not empty"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-x4c7tr9",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123606-x4c7tr9",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-pywq09e",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-pywq09e",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "Numeric statistics"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ": sum, average, median, min, max, range"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-gqzq2fs",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123606-gqzq2fs",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-foh81m4",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-foh81m4",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "Checkbox"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ": checked, unchecked, and their percentages"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-hntgn0m",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123606-hntgn0m",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "ID": "20260617123606-2uplobz",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-2uplobz",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "Date"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ": earliest, latest"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-q8959c7",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123606-q8959c7",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123606-51xeqe6",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-51xeqe6",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "When the row-level result of a rollup field is numeric (e.g. the row-level calculation is a count), the numeric statistics methods also become available."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-hmer6rw",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123606-hmer6rw",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Template Calculation"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-wx8nslr",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-wx8nslr",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "When the built-in calculations cannot meet your needs, choose \"Template\" to write a formula that performs custom statistics on the entire column."
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-azl5vps",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-azl5vps",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Click the calculation bar and select \"Template\", then enter a formula in the dialog that appears. If the result can be parsed as a number, it is displayed according to the column's number format; otherwise, it is displayed as plain text."
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-099e9jn",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123606-099e9jn",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Available Variables"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-8i1ggi1",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123606-8i1ggi1",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Variable"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Meaning"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The numeric array parsed from the entire column"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".strings"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The array of each value's text form in the column"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".raw"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The array of raw values in the column"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".count"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Total number of values"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".sum"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Sum of the numbers"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".avg"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Average of the numbers"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".min"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Minimum value"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".max"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Maximum value"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".median"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Median value"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-a1r19o6",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123606-a1r19o6",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123606-lynr37v",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-lynr37v",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The number of elements in "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ depends on the column type: single-value columns such as number and text count one value per row; multi-value columns such as multi-select and asset count each option separately (consistent with the native \"Count values\" semantics)."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-ymsesa4",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123606-ymsesa4",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Syntax"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-op64wuq",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-op64wuq",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Template calculation uses the same Go template syntax as \"Template snippet\", with delimiters "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ and functions following the "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "a",
+ "TextMarkAHref": "http://masterminds.github.io/sprig/",
+ "TextMarkTextContent": "sprig"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " specification. See "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "block-ref",
+ "TextMarkBlockRefID": "20201204184532-3qm9l8n",
+ "TextMarkBlockRefSubtype": "d",
+ "TextMarkTextContent": "Template snippet"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " for details."
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-tlytmd9",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123606-tlytmd9",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Examples"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-lbs4ju7",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123606-lbs4ju7",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "The following are all scenarios that built-in calculations cannot directly handle:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123606-51zc0nr",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123606-51zc0nr",
+ "updated": "20260617123606"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Scenario"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Template"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Count of values greater than 100"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . 100))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Percentage of values greater than 0"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (gt . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Percentage of values equal to 0"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (eq . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Count of values above average"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . .avg))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Fail rate (percentage below 60)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (lt . 60))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "Rows starting with \"TODO\""
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "`.action{len"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/app/guide/20210808180117-czj9bvb/.siyuan/sort.json b/app/guide/20210808180117-czj9bvb/.siyuan/sort.json
index 2527b84972..5254acc1ee 100644
--- a/app/guide/20210808180117-czj9bvb/.siyuan/sort.json
+++ b/app/guide/20210808180117-czj9bvb/.siyuan/sort.json
@@ -1 +1 @@
-{"20200812220555-lj3enxa":1,"20200813004551-gm0pbn1":19,"20200813004931-q4cu8na":1,"20200813013559-sgbzl5k":3,"20200813093015-u6bopdt":3,"20200813125307-pxsjela":2,"20200813131152-0wk5akh":4,"20200813163359-v04n73b":10,"20200822191536-rm6hwid":4,"20200825162036-4dx365o":1,"20200828105441-r76vmu5":22,"20200905090211-2vixtlf":2,"20200910201551-h4twhas":7,"20200915214115-42b8zma":11,"20200922102318-oz84yu3":2,"20201004184819-nj8ibyg":20,"20201117101902-2ewjjum":6,"20201121212605-9td1a62":11,"20201204181006-7bkppue":12,"20201210103036-1x3vm8t":5,"20201222093044-rx4zjoy":2,"20201222095049-hghafhe":3,"20201227173504-847cs1q":21,"20201227194925-7ipoiv6":23,"20210110175347-2xrwoiq":6,"20210117211155-56n4odu":4,"20210127202655-2334vvv":13,"20210331200042-94gs1hh":15,"20210505163537-oo97zov":3,"20210612224500-ywcms1m":7,"20210615211733-v6rzowm":16,"20210808180320-abz7w6k":2,"20210808180320-fqgskfj":1,"20210808180320-gyngv2x":3,"20210808180320-qgr0b3q":5,"20210808180321-hbvl5c2":6,"20210824201257-cy7icrc":9,"20211010211311-ffz0wbu":14,"20220415190432-r3xqn3r":1,"20220628204444-9n0y9h2":2,"20221016213308-uz5af79":3,"20221223215557-o6gfsoy":17,"20230104144904-39br4c6":24,"20230106101434-e6g4av3":1,"20230303235619-ex5l63e":18,"20230405155631-leo4vc6":6,"20230428153709-hioyy5l":7,"20230429114837-70asb4j":5,"20230506210010-houyyvy":10,"20230519105228-hm0y74i":8,"20230805222417-2lj3dvk":7,"20230805225107-qm1m2f5":2,"20230805230131-sn7obzb":1,"20230805230218-aea8icj":2,"20230808120347-3cob0nb":2,"20230808120347-mw3qrwy":4,"20230808120347-pzvmkik":1,"20230808120348-hynr7og":5,"20230808120348-lgcp9zm":3,"20230808120348-vaxi6eq":6,"20230808120348-yut741f":7,"20240113102857-c63dmo5":2,"20240119205452-o8xp4ve":4,"20240119205543-hknwwrl":5,"20240208113259-nykkvaq":8,"20240317200013-fim8wm8":9,"20240517031028-xqinazo":25,"20260612191136-feqbi1x":26,"20260612191214-ymtlxn2":25,"20260612191251-yhv20we":25,"20260613155453-n1se73o":2,"20260613211020-87z3rss":5,"20260614104254-4ifhixg":27}
\ No newline at end of file
+{"20200812220555-lj3enxa":1,"20200813004551-gm0pbn1":19,"20200813004931-q4cu8na":1,"20200813013559-sgbzl5k":3,"20200813093015-u6bopdt":3,"20200813125307-pxsjela":2,"20200813131152-0wk5akh":4,"20200813163359-v04n73b":10,"20200822191536-rm6hwid":4,"20200825162036-4dx365o":1,"20200828105441-r76vmu5":22,"20200905090211-2vixtlf":2,"20200910201551-h4twhas":7,"20200915214115-42b8zma":11,"20200922102318-oz84yu3":2,"20201004184819-nj8ibyg":20,"20201117101902-2ewjjum":6,"20201121212605-9td1a62":11,"20201204181006-7bkppue":12,"20201210103036-1x3vm8t":5,"20201222093044-rx4zjoy":2,"20201222095049-hghafhe":3,"20201227173504-847cs1q":21,"20201227194925-7ipoiv6":23,"20210110175347-2xrwoiq":6,"20210117211155-56n4odu":4,"20210127202655-2334vvv":13,"20210331200042-94gs1hh":15,"20210505163537-oo97zov":3,"20210612224500-ywcms1m":7,"20210615211733-v6rzowm":16,"20210808180320-abz7w6k":2,"20210808180320-fqgskfj":1,"20210808180320-gyngv2x":3,"20210808180320-qgr0b3q":5,"20210808180321-hbvl5c2":6,"20210824201257-cy7icrc":9,"20211010211311-ffz0wbu":14,"20220415190432-r3xqn3r":1,"20220628204444-9n0y9h2":2,"20221016213308-uz5af79":3,"20221223215557-o6gfsoy":17,"20230104144904-39br4c6":24,"20230106101434-e6g4av3":1,"20230303235619-ex5l63e":18,"20230405155631-leo4vc6":6,"20230428153709-hioyy5l":7,"20230429114837-70asb4j":5,"20230506210010-houyyvy":10,"20230519105228-hm0y74i":8,"20230805222417-2lj3dvk":7,"20230805225107-qm1m2f5":2,"20230805230131-sn7obzb":1,"20230805230218-aea8icj":2,"20230808120347-3cob0nb":2,"20230808120347-mw3qrwy":4,"20230808120347-pzvmkik":1,"20230808120348-hynr7og":5,"20230808120348-lgcp9zm":3,"20230808120348-vaxi6eq":6,"20230808120348-yut741f":7,"20240113102857-c63dmo5":2,"20240119205452-o8xp4ve":4,"20240119205543-hknwwrl":5,"20240208113259-nykkvaq":8,"20240317200013-fim8wm8":9,"20240517031028-xqinazo":25,"20260612191136-feqbi1x":26,"20260612191214-ymtlxn2":25,"20260612191251-yhv20we":25,"20260613155453-n1se73o":2,"20260613211020-87z3rss":5,"20260614104254-4ifhixg":27,"20260617122823-56cr2zv":3}
\ No newline at end of file
diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq/20260617122823-56cr2zv.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq/20260617122823-56cr2zv.sy
new file mode 100644
index 0000000000..24362cc4ad
--- /dev/null
+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq/20260617122823-56cr2zv.sy
@@ -0,0 +1,1156 @@
+{
+ "ID": "20260617122823-56cr2zv",
+ "Spec": "2",
+ "Type": "NodeDocument",
+ "Properties": {
+ "id": "20260617122823-56cr2zv",
+ "title": "表格计算",
+ "type": "doc",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-xuj0t5o",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123133-xuj0t5o",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "概述"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-8gpbx0q",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-8gpbx0q",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "数据库表格底部支持对每列进行汇总计算。点击列底部的计算栏即可选择计算方式。除行号列外,所有字段类型均支持表格计算。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-lnn22xa",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123133-lnn22xa",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "预置计算方式"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-v9amx9f",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-v9amx9f",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "根据字段类型自动显示对应的计算方式:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-duq0mgw",
+ "Type": "NodeList",
+ "ListData": {},
+ "Properties": {
+ "id": "20260617123133-duq0mgw",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-szen60v",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123133-szen60v",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-uutupj9",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-uutupj9",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "计数"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":总数、非空、去重"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-115yi0i",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123133-115yi0i",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-q4rdnyk",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-q4rdnyk",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "百分比"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":空值占比、非空占比"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-v1c7cj8",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123133-v1c7cj8",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-432lyyn",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-432lyyn",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "数值统计"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":求和、平均值、中位数、最小值、最大值、极差"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-h0o8ddb",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123133-h0o8ddb",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-hbji2v9",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-hbji2v9",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "复选框"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":勾选数、未勾选数及对应占比"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-zu4315m",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123133-zu4315m",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "ID": "20260617123133-c8vyqdf",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-c8vyqdf",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "日期"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":最早值、最晚值"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-jgu4uov",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123133-jgu4uov",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123133-kisih1g",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-kisih1g",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "汇总字段的行级结果若为数字(例如行级用了计数),数值统计类计算方式也会自动可用。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-yfcvt0u",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123133-yfcvt0u",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "模板计算"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-utx342v",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-utx342v",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "当预置的计算方式无法满足需求时,可选择「模板」,通过编写公式对整列数据进行自定义统计。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-2m0y6ng",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-2m0y6ng",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "点击计算栏选择「模板」,在弹出的对话框中输入公式。结果能解析为数字时按列的数字格式显示,否则原样显示为文本。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-jv887ic",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123133-jv887ic",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "可用变量"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-p695ffr",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123133-p695ffr",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "变量"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "含义"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列解析出的数字数组"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".strings"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列各值的文本形式数组"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".raw"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列原始值数组"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".count"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "值的总数"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".sum"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "数字总和"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".avg"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "数字平均值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".min"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最小值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".max"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最大值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".median"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "中位数"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-cr7ylh4",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123133-cr7ylh4",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123133-qqnng8v",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-qqnng8v",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ 的元素个数取决于列类型:数字、文本等单值列每行算一个值;多选、资源等多值列每个选项单独算一个值(与原生「计算值数量」口径一致)。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-x9hwxlb",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123133-x9hwxlb",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "语法"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-uf5x4ef",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-uf5x4ef",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "模板计算采用与「模板片段」一致的 Go 模板语法,分隔符为 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​,函数遵循 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "a",
+ "TextMarkAHref": "http://masterminds.github.io/sprig/",
+ "TextMarkTextContent": "sprig"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " 规范,详见 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "block-ref",
+ "TextMarkBlockRefID": "20201204181006-7bkppue",
+ "TextMarkBlockRefSubtype": "d",
+ "TextMarkTextContent": "模板片段"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " 章节。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-14b9ta3",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123133-14b9ta3",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "示例"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-fw07vb9",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123133-fw07vb9",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "以下均为预置计算方式无法直接实现的场景:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123133-jgyu512",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123133-jgyu512",
+ "updated": "20260617123133"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "场景"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "模板"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "大于 100 的个数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . 100))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "大于 0 的占比"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (gt . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "等于 0 的占比"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (eq . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "高于平均值的个数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . .avg))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "不及格率(小于 60 占比)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (lt . 60))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "以「待办」开头的行数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (hasPrefix . \"待办\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "包含某关键词的行数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (contains . \"紧急\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "不重复选项数(多选列)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (uniq .strings)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/app/guide/20211226090932-5lcq56f/.siyuan/sort.json b/app/guide/20211226090932-5lcq56f/.siyuan/sort.json
index 44399c852c..14a998e557 100644
--- a/app/guide/20211226090932-5lcq56f/.siyuan/sort.json
+++ b/app/guide/20211226090932-5lcq56f/.siyuan/sort.json
@@ -1 +1 @@
-{"20211226114339-dk0gtpr":10,"20211226114929-08ap1r0":11,"20211226115043-afhev0g":4,"20211226115227-r1rty9v":3,"20211226115423-d5z1joq":1,"20211226115825-mhcslw2":1,"20211226120055-9mityht":1,"20211226120147-ib6yy3i":2,"20211226120247-63nd8y5":3,"20211226120349-rbkmozu":4,"20211226120422-bkzsd2e":5,"20211226120508-yzh70eh":6,"20211226120802-77aj0is":7,"20211226120854-dr1jfx2":2,"20211226120933-vnjgwwh":3,"20211226121109-f060fkg":4,"20211226121203-rjjngpz":5,"20211226121319-emrk2yy":1,"20211226121322-9argcys":3,"20211226121329-c5v3dto":23,"20211226121332-irgblss":4,"20211226121438-xaafdo8":2,"20211226121503-k3jma6m":1,"20211226121808-fnxmngk":2,"20211226122358-hctqcn5":22,"20211226122459-08mi5cq":21,"20211226122523-rl8356a":20,"20211226122549-jktxego":19,"20211226122707-8cr09co":16,"20211226122728-cnqf7rz":15,"20211226122814-r1rdpcx":14,"20211226122943-st7fpcj":13,"20211226123004-dplpw0o":12,"20211226123038-4umgpxy":11,"20211226123101-qjw03ab":9,"20211226123130-jpeg5b2":7,"20211226123154-fd5e001":6,"20211226123216-tlxw66f":4,"20211226123241-51pujtr":3,"20211226123302-akitvb1":2,"20220105101348-corstqc":6,"20220415232129-shpzg6r":1,"20220628204420-ui79vkt":2,"20220708102441-u6wopo9":3,"20221016213639-1nag9jj":3,"20221223221501-mops33i":17,"20230104151953-48hwkwf":24,"20230106104645-o838uew":1,"20230304000829-9jwu3po":18,"20230405172131-yb16aax":6,"20230429115206-ob8nl8t":5,"20230506211210-1roopyo":10,"20230805232636-zh0adz2":6,"20230805232719-04mqbcx":2,"20230805232903-erdoerp":1,"20230805232920-5fdco36":2,"20240113110500-dz2ae4n":2,"20240119210914-a2tm8c4":4,"20240119212000-qkldbjm":5,"20240208171522-y7dxcno":8,"20240317202230-l8duv3r":9,"20240508010647-8nuyk31":5,"20240517031052-mgoxs16":25,"20260612191214-ymtlxn2":26,"20260613155453-pxxzmhc":3,"20260613211829-rjgkboa":5,"20260614104322-shrqj15":27,"20260614113156-1jveexn":7,"20260614113219-gcm8mer":8}
\ No newline at end of file
+{"20211226114339-dk0gtpr":10,"20211226114929-08ap1r0":11,"20211226115043-afhev0g":4,"20211226115227-r1rty9v":3,"20211226115423-d5z1joq":1,"20211226115825-mhcslw2":1,"20211226120055-9mityht":1,"20211226120147-ib6yy3i":2,"20211226120247-63nd8y5":3,"20211226120349-rbkmozu":4,"20211226120422-bkzsd2e":5,"20211226120508-yzh70eh":6,"20211226120802-77aj0is":7,"20211226120854-dr1jfx2":2,"20211226120933-vnjgwwh":3,"20211226121109-f060fkg":4,"20211226121203-rjjngpz":5,"20211226121319-emrk2yy":1,"20211226121322-9argcys":3,"20211226121329-c5v3dto":23,"20211226121332-irgblss":4,"20211226121438-xaafdo8":2,"20211226121503-k3jma6m":1,"20211226121808-fnxmngk":2,"20211226122358-hctqcn5":22,"20211226122459-08mi5cq":21,"20211226122523-rl8356a":20,"20211226122549-jktxego":19,"20211226122707-8cr09co":16,"20211226122728-cnqf7rz":15,"20211226122814-r1rdpcx":14,"20211226122943-st7fpcj":13,"20211226123004-dplpw0o":12,"20211226123038-4umgpxy":11,"20211226123101-qjw03ab":9,"20211226123130-jpeg5b2":7,"20211226123154-fd5e001":6,"20211226123216-tlxw66f":4,"20211226123241-51pujtr":3,"20211226123302-akitvb1":2,"20220105101348-corstqc":6,"20220415232129-shpzg6r":1,"20220628204420-ui79vkt":2,"20220708102441-u6wopo9":3,"20221016213639-1nag9jj":3,"20221223221501-mops33i":17,"20230104151953-48hwkwf":24,"20230106104645-o838uew":1,"20230304000829-9jwu3po":18,"20230405172131-yb16aax":6,"20230429115206-ob8nl8t":5,"20230506211210-1roopyo":10,"20230805232636-zh0adz2":6,"20230805232719-04mqbcx":2,"20230805232903-erdoerp":1,"20230805232920-5fdco36":2,"20240113110500-dz2ae4n":2,"20240119210914-a2tm8c4":4,"20240119212000-qkldbjm":5,"20240208171522-y7dxcno":8,"20240317202230-l8duv3r":9,"20240508010647-8nuyk31":5,"20240517031052-mgoxs16":25,"20260612191214-ymtlxn2":26,"20260613155453-pxxzmhc":3,"20260613211829-rjgkboa":5,"20260614104322-shrqj15":27,"20260614113156-1jveexn":7,"20260614113219-gcm8mer":8,"20260617124140-ttdzn7n":4}
\ No newline at end of file
diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno/20260617124140-ttdzn7n.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno/20260617124140-ttdzn7n.sy
new file mode 100644
index 0000000000..1fb1ceb9f4
--- /dev/null
+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno/20260617124140-ttdzn7n.sy
@@ -0,0 +1,1156 @@
+{
+ "ID": "20260617124140-ttdzn7n",
+ "Spec": "2",
+ "Type": "NodeDocument",
+ "Properties": {
+ "id": "20260617124140-ttdzn7n",
+ "title": "表格計算",
+ "type": "doc",
+ "updated": "20260617124159"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-b8k4gak",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617124141-b8k4gak",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "概述"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-sjf98uc",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-sjf98uc",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "資料庫表格底部支援對每列進行彙總計算。點擊列底部的計算欄即可選擇計算方式。除行號列外,所有欄位型別均支援表格計算。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-iywqevk",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617124141-iywqevk",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "內建計算方式"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-jq0549i",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-jq0549i",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "根據欄位型別自動顯示對應的計算方式:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-5ve3zwz",
+ "Type": "NodeList",
+ "ListData": {},
+ "Properties": {
+ "id": "20260617124141-5ve3zwz",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-22el9s7",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617124141-22el9s7",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-emrxa22",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-emrxa22",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "計數"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":總數、非空、去重"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-loy2gif",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617124141-loy2gif",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-tnrte9b",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-tnrte9b",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "百分比"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":空值佔比、非空佔比"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-5gs6yjj",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617124141-5gs6yjj",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-8qdvyzl",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-8qdvyzl",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "數值統計"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":總和、平均值、中位數、最小值、最大值、極差"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-z8i81c0",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617124141-z8i81c0",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-hemdisy",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-hemdisy",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "勾選框"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":勾選數、未勾選數及對應佔比"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-ysi2ooc",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617124141-ysi2ooc",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "ID": "20260617124141-v00wm12",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-v00wm12",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "日期"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":最早值、最晚值"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-j20wwkz",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617124141-j20wwkz",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617124141-rgedyx5",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-rgedyx5",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "匯總欄位的行級結果若為數字(例如行級用了計數),數值統計類計算方式也會自動可用。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-vlyd6cy",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617124141-vlyd6cy",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "範本計算"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-l3gp9a2",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-l3gp9a2",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "當內建的計算方式無法滿足需求時,可選擇「範本」,透過編寫公式對整列資料進行自訂統計。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-oy77y5o",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-oy77y5o",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "點擊計算欄選擇「範本」,在彈出的對話框中輸入公式。結果能解析為數字時按列的數字格式顯示,否則原樣顯示為文字。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-w29q59c",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617124141-w29q59c",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "可用變數"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-7h74zer",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617124141-7h74zer",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "變數"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "含義"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列解析出的數字陣列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".strings"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列各值的文字形式陣列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".raw"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "整列原始值陣列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".count"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "值的總數"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".sum"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "數字總和"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".avg"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "數字平均值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".min"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最小值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".max"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最大值"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".median"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "中位數"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-dvkk167",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617124141-dvkk167",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617124141-45mapoo",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-45mapoo",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ 的元素個數取決於列型別:數字、文字等單值列每行算一個值;多選、資源等多值列每個選項單獨算一個值(與原生「計算值數量」口徑一致)。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-km5jdne",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617124141-km5jdne",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "語法"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-yk8u7ym",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-yk8u7ym",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "範本計算採用與「範本片段」一致的 Go 範本語法,分隔符為 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​,函式遵循 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "a",
+ "TextMarkAHref": "http://masterminds.github.io/sprig/",
+ "TextMarkTextContent": "sprig"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " 規範,詳見 "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "block-ref",
+ "TextMarkBlockRefID": "20211226123004-dplpw0o",
+ "TextMarkBlockRefSubtype": "d",
+ "TextMarkTextContent": "範本片段"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " 章節。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-e5l4lrp",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617124141-e5l4lrp",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "範例"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-omb45s3",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617124141-omb45s3",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "以下均為內建計算方式無法直接實作的場景:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617124141-a0i47hb",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617124141-a0i47hb",
+ "updated": "20260617124141"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "場景"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "範本"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "大於 100 的個數"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . 100))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "大於 0 的佔比"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (gt . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "等於 0 的佔比"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (eq . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "高於平均值的個數"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . .avg))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "不及格率(小於 60 的佔比)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (lt . 60))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "以「待辦」開頭的行數"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (hasPrefix . \"待辦\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "包含某關鍵字的行數"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (contains . \"緊急\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "不重複選項數(多選列)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (uniq .strings)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/app/guide/20240530133126-axarxgx/.siyuan/sort.json b/app/guide/20240530133126-axarxgx/.siyuan/sort.json
index 67d37e6f80..f4db8426a9 100644
--- a/app/guide/20240530133126-axarxgx/.siyuan/sort.json
+++ b/app/guide/20240530133126-axarxgx/.siyuan/sort.json
@@ -1 +1 @@
-{"20240530101000-0zd9si2":14,"20240530101000-1m5un7l":11,"20240530101000-1vvnhju":6,"20240530101000-35bbvcx":2,"20240530101000-3eaevtp":8,"20240530101000-3ourzoa":2,"20240530101000-3qhz7br":1,"20240530101000-3xv6jjr":9,"20240530101000-40hohog":20,"20240530101000-4cqkoel":24,"20240530101000-4p096e8":1,"20240530101000-4qitucx":1,"20240530101000-58z6rjh":2,"20240530101000-5gi76ax":9,"20240530101000-5k5d5i3":2,"20240530101000-6x9ivi7":12,"20240530101000-75auqcn":6,"20240530101000-78d5w10":4,"20240530101000-7yv4y5z":4,"20240530101000-875snki":7,"20240530101000-8m2dowc":10,"20240530101000-96n5y9v":1,"20240530101000-a91lmk2":3,"20240530101000-bb0qktp":1,"20240530101000-bgv304g":8,"20240530101000-boiita2":4,"20240530101000-bpj42r0":2,"20240530101000-cb37szr":7,"20240530101000-d31i9v5":2,"20240530101000-dro2zi9":5,"20240530101000-dytmky4":23,"20240530101000-e6z5okf":2,"20240530101000-ei5t6tt":18,"20240530101000-f16hpct":21,"20240530101000-flot1gj":6,"20240530101000-g3ugxml":5,"20240530101000-gc0tuyd":3,"20240530101000-gcdp3gl":3,"20240530101000-gvtksyj":1,"20240530101000-h0cp5vx":5,"20240530101000-hkgs92c":4,"20240530101000-hnu6o79":2,"20240530101000-hq9sn3k":1,"20240530101000-jp793ic":3,"20240530101000-mpln2lp":5,"20240530101000-mrlr6e9":4,"20240530101000-na9sys7":1,"20240530101000-odye3ea":3,"20240530101000-qf0xtkd":2,"20240530101000-scr2p21":6,"20240530101000-to5uvpi":13,"20240530101000-txrc7z1":16,"20240530101000-uxno1yp":3,"20240530101000-vejnh1k":1,"20240530101000-vql5s27":5,"20240530101000-wo49zvq":2,"20240530101000-xc13cm6":7,"20240530101000-xq26o73":22,"20240530101000-xr22qn8":4,"20240530101000-xsbxokr":19,"20240530101000-ynpmvl7":17,"20240530101000-zj4k048":3,"20240530101000-znj103k":10,"20240530101000-zprnpfi":15,"20240610233601-ylh1mvk":25,"20260612192417-fb4ueux":26,"20260613155453-sncbsow":1,"20260613211946-ods0v99":5,"20260614104715-xe51jlk":27,"20260614113219-gcm8mer":7}
\ No newline at end of file
+{"20240530101000-0zd9si2":14,"20240530101000-1m5un7l":11,"20240530101000-1vvnhju":6,"20240530101000-35bbvcx":2,"20240530101000-3eaevtp":8,"20240530101000-3ourzoa":2,"20240530101000-3qhz7br":1,"20240530101000-3xv6jjr":9,"20240530101000-40hohog":20,"20240530101000-4cqkoel":24,"20240530101000-4p096e8":1,"20240530101000-4qitucx":1,"20240530101000-58z6rjh":2,"20240530101000-5gi76ax":9,"20240530101000-5k5d5i3":2,"20240530101000-6x9ivi7":12,"20240530101000-75auqcn":6,"20240530101000-78d5w10":4,"20240530101000-7yv4y5z":4,"20240530101000-875snki":7,"20240530101000-8m2dowc":10,"20240530101000-96n5y9v":1,"20240530101000-a91lmk2":3,"20240530101000-bb0qktp":1,"20240530101000-bgv304g":8,"20240530101000-boiita2":4,"20240530101000-bpj42r0":2,"20240530101000-cb37szr":7,"20240530101000-d31i9v5":2,"20240530101000-dro2zi9":5,"20240530101000-dytmky4":23,"20240530101000-e6z5okf":2,"20240530101000-ei5t6tt":18,"20240530101000-f16hpct":21,"20240530101000-flot1gj":6,"20240530101000-g3ugxml":5,"20240530101000-gc0tuyd":3,"20240530101000-gcdp3gl":3,"20240530101000-gvtksyj":1,"20240530101000-h0cp5vx":5,"20240530101000-hkgs92c":4,"20240530101000-hnu6o79":2,"20240530101000-hq9sn3k":1,"20240530101000-jp793ic":3,"20240530101000-mpln2lp":5,"20240530101000-mrlr6e9":4,"20240530101000-na9sys7":1,"20240530101000-odye3ea":3,"20240530101000-qf0xtkd":2,"20240530101000-scr2p21":6,"20240530101000-to5uvpi":13,"20240530101000-txrc7z1":16,"20240530101000-uxno1yp":3,"20240530101000-vejnh1k":1,"20240530101000-vql5s27":5,"20240530101000-wo49zvq":2,"20240530101000-xc13cm6":7,"20240530101000-xq26o73":22,"20240530101000-xr22qn8":4,"20240530101000-xsbxokr":19,"20240530101000-ynpmvl7":17,"20240530101000-zj4k048":3,"20240530101000-znj103k":10,"20240530101000-zprnpfi":15,"20240610233601-ylh1mvk":25,"20260612192417-fb4ueux":26,"20260613155453-sncbsow":1,"20260613211946-ods0v99":5,"20260614104715-xe51jlk":27,"20260614113219-gcm8mer":7,"20260617123701-ju7eee5":2}
\ No newline at end of file
diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp/20260617123701-ju7eee5.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp/20260617123701-ju7eee5.sy
new file mode 100644
index 0000000000..b68ad75a6c
--- /dev/null
+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp/20260617123701-ju7eee5.sy
@@ -0,0 +1,1156 @@
+{
+ "ID": "20260617123701-ju7eee5",
+ "Spec": "2",
+ "Type": "NodeDocument",
+ "Properties": {
+ "id": "20260617123701-ju7eee5",
+ "title": "テーブル計算",
+ "type": "doc",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-1ylgn0m",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123957-1ylgn0m",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "概要"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-9o2p1g6",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-9o2p1g6",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "データベーステーブルの下部では、各列に対する集計計算をサポートしています。列の下部にある計算バーをクリックすると、計算方法を選択できます。行番号列を除くすべてのフィールドタイプでテーブル計算を利用できます。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-pjwdpkm",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123957-pjwdpkm",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "組み込みの計算方法"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-f5ceeb8",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-f5ceeb8",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "フィールドタイプに応じて、対応する計算方法が自動的に表示されます:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-3j9ynn5",
+ "Type": "NodeList",
+ "ListData": {},
+ "Properties": {
+ "id": "20260617123957-3j9ynn5",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-r21m4vw",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123957-r21m4vw",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-orqaaq7",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-orqaaq7",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "カウント"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":合計、空でない、重複なし"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-eradk95",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123957-eradk95",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-vugmcap",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-vugmcap",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "パーセンテージ"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":空の割合、空でない割合"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-3ugtg91",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123957-3ugtg91",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-wcie6fa",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-wcie6fa",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "数値統計"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":合計、平均、中央値、最小値、最大値、範囲"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-d4drj60",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123957-d4drj60",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-mm1z3ns",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-mm1z3ns",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "チェックボックス"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":チェック数、未チェック数およびそれぞれの割合"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-1dq1ca3",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260617123957-1dq1ca3",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "ID": "20260617123957-vdj4tz8",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-vdj4tz8",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "strong",
+ "TextMarkTextContent": "日付"
+ },
+ {
+ "Type": "NodeText",
+ "Data": ":最も早い日、最も遅い日"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-ptz7ds6",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123957-ptz7ds6",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123957-5ddn11u",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-5ddn11u",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "ロールアップフィールドの行レベルの結果が数値の場合(例:行レベルの計算がカウントの場合)、数値統計の計算方法も自動的に利用可能になります。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-18l2dhx",
+ "Type": "NodeHeading",
+ "HeadingLevel": 2,
+ "Properties": {
+ "id": "20260617123957-18l2dhx",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "テンプレート計算"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-to0ooq9",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-to0ooq9",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "組み込みの計算方法ではニーズを満たせない場合、「テンプレート」を選択して、数式を記述することで列全体のデータに対するカスタム集計を行えます。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-eisx8oo",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-eisx8oo",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "計算バーをクリックして「テンプレート」を選択し、表示されたダイアログに数式を入力します。結果が数値として解析できる場合は列の数値書式で表示され、それ以外の場合はプレーンテキストとして表示されます。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-f2rjl5x",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123957-f2rjl5x",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "使用可能な変数"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-7h2i427",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123957-7h2i427",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "変数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "意味"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "列全体から解析された数値配列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".strings"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "列内の各値のテキスト形式の配列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".raw"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "列内の生の値の配列"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".count"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "値の総数"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".sum"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "数値の合計"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".avg"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "数値の平均"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".min"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最小値"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".max"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "最大値"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".median"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "中央値"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-2ke0gnj",
+ "Type": "NodeBlockquote",
+ "Properties": {
+ "id": "20260617123957-2ke0gnj",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeBlockquoteMarker",
+ "Data": "\u003e"
+ },
+ {
+ "ID": "20260617123957-cl8rwey",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-cl8rwey",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".values"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ の要素数は列タイプによって異なります:数値やテキストなどの単一値列は各行につき 1 つの値としてカウントされ、複数選択やアセットなどの複数値列は各オプションを個別にカウントします(ネイティブの「値をカウント」と同じ基準です)。"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-djnp3a6",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123957-djnp3a6",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "構文"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-gfyrrt0",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-gfyrrt0",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "テンプレート計算は「テンプレートスニペット」と同じ Go テンプレート構文を使用し、区切り文字は "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​、関数は "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "a",
+ "TextMarkAHref": "http://masterminds.github.io/sprig/",
+ "TextMarkTextContent": "sprig"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " 仕様に従います。詳細は "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "block-ref",
+ "TextMarkBlockRefID": "20240530101000-6x9ivi7",
+ "TextMarkBlockRefSubtype": "d",
+ "TextMarkTextContent": "テンプレートスニペット"
+ },
+ {
+ "Type": "NodeText",
+ "Data": " を参照してください。"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-3v235ow",
+ "Type": "NodeHeading",
+ "HeadingLevel": 3,
+ "Properties": {
+ "id": "20260617123957-3v235ow",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "例"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-qoe0bvo",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260617123957-qoe0bvo",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "以下はすべて、組み込みの計算方法では直接実現できないシナリオです:"
+ }
+ ]
+ },
+ {
+ "ID": "20260617123957-otmfbep",
+ "Type": "NodeTable",
+ "TableAligns": [
+ 0,
+ 0
+ ],
+ "Properties": {
+ "colgroup": "|",
+ "id": "20260617123957-otmfbep",
+ "updated": "20260617123957"
+ },
+ "Children": [
+ {
+ "Type": "NodeTableHead",
+ "Data": "thead",
+ "Children": [
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "シナリオ"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "th",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "テンプレート"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "100 より大きい値の数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . 100))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "0 より大きい値の割合"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (gt . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "0 に等しい値の割合"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (eq . 0))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "平均より大きい値の数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .values (gt . .avg))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "不合格率(60 未満の割合)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{div (len (filter .values (lt . 60))) (len .values)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "「タスク」で始まる行数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (hasPrefix . \"タスク\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "キーワードを含む行数"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (filter .strings (contains . \"緊急\"))}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableRow",
+ "Data": "tr",
+ "Children": [
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "重複なしオプション数(複数選択列)"
+ }
+ ]
+ },
+ {
+ "Type": "NodeTableCell",
+ "Data": "td",
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": ".action{len (uniq .strings)}}"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file