FWIW, I had a quick look at the
PowerBI docs last night. One small thing I was confused by is their docs have examples where the filter parameter is specified both
with and
without the
dollar sign so I was wondering which version you got to work:
url += "&$filter=\"Accounts%2FCategory\"eq'" + state + "'";
Also, with regard to your own code you might benefit from using
backtick quotes when specifying your filter parameter:
var state = $("catformula", xml).text();
...
url += '&$filter="Accounts/Category" eq '${state}'';
Backtick quotes allow you to do "
string interpolation" where any expression with
${} is evaluated and substituted into the string.
Quite frankly QuickBase should adopt backtick quotes in their own formula language (or replace it with JavaScript) so you can avoid concatenating dozens of string fragments together.