Closed natdudley closed 5 years ago
Is there a default you'd want to use if you didn't specify a separator?
I think '-' is the safest default
Where - is actually an em dash.
Have changed group syntax to add separator, include, and exclude. Existing json files will need to be modified.
New syntax looks like this:
"group": {
"column": "xxxx",
"separator": "----",
"include": [
{
"value": "aaaa"
},
{
"value": "bbbb"
},
{
"value": "cccc"
},
{
"value": "dddd",
"label": "d"
}
],
"exclude": [
"yyyy",
"zzzz"
]
}
e.g.:
{
"uri": "https://figure.nz/table/a5X7TSwPRjKASUSv/download",
"parent": "Income",
"measure": {
"column": "Benefit type",
"group": {
"column": "Grouping variable",
"separator": "by",
"include": [
{
"value": "Gender"
},
{
"value": "Ethnic Group"
},
{
"value": "Age Group"
},
{
"value": "Continuous Duration",
"label": "Duration"
}
],
"exclude": []
},
"include": [],
"exclude": []
},
"category": {
"column": "Category",
"include": [],
"exclude": []
},
"date": "Quarter"
}
Grouping variables don't always work with by.
Can we please either:
e.g.
Number of businesses by Birth should be "Number of businesses - created"
but, Total Main Benefits is better as "Total Main Benefits by age" rather than "- age"