I have tried back ticks, brackets, everything I can think of
The script below works correctly and provides the results that I expect, but I really need to put Account Level 9 in the var where
Specifically Account Level 9 = Administrative expense
but when I add the field I get nothing. I can see the record in the output when I use the script below. I know it's correct but I am pretty sure it has to do with the fact that the field has spaces it in. The fields I am successful with below all do not. I do not want to go back and remove the spaces in the field name
I have tried this and a bunch of other variations
var where = ['TimeSeriesShort = YTD','RecordType = Standard','MOLongName = November','Account Level 9 = Administrative expense'];
If you could be specific in your response I would greatly appreciate it.
WORKING SCRIPT
var columns = ['RecordType','TimeSeriesShort','MOLongName',`Account Level 9`,`VAR P-A (A)`];
var fields = columns;
var where = ['TimeSeriesShort = YTD','RecordType = Standard','MOLongName = November'];
var query = `/data/v1/${datasets[0]}?fields=${fields.join()}&groupby=RecordType,TimeSeriesShort,MOLongName,'Account Level 9'&filter=${where.join()}`;