WikiNewZealand / fundamental-figures

1 stars 0 forks source link

Calculations #9

Open natdudley opened 5 years ago

natdudley commented 5 years ago

We'd like to:

It would be nice to:

Spksh commented 5 years ago

Added "convert to a percentage". This just sums up the rows that survive processing, so we'll need to be mindful of exclude values, e.g. if a "Total" row makes it in, we'll include that in the sum and blow out the calculated total.

The Boolean to enable this is set on the include for measure. It respects any group applied; totals will be calculated within the group.

        {
            "uri": "https://figure.nz/table/VL93L0Yr0wPdvbKB/download",
            "parent": "Demographics",
            "measure": { 
                "column": "Measure", 
                "include": [ 
                    { 
                        "value": "Sex for the census usually resident population count", 
                        "label": "Census population by sex",
                        "convert-to-percentage": true
                    }
                ],
                "exclude": [ ] 
            },
            "category": { 
                "column": "Sex", 
                "include": [ 
                    { 
                        "value": "Male"
                    },
                    { 
                        "value": "Female"
                    }
                ],
                "exclude": [ ] 
            },
            "date": "Census Year"
        }