Hello there.
I have a dropdown of parameter values for variable_x and variable_y.
A user can choose one of these via a dashboard dropdown: color_score, color_bias, color_ranking, color_result, etc. This changes the value (i.e., the selected name) of variable_x and variable_y.
The resulting table looks something like this:
However, instead of having separate columns, I’d like the column title of value_x and value_y to change. Ideally, it’d look as follows:
Is this possible in Redash? If so, please advise. Thank you!
Extra info:
Summary
The query is as follows:
method:
post
url:
https://core.com:123/models/123abc/latest/model
headers :
content-type: application/json
data: '{"data": {"event": {"params": {"favorite": "{{favorite}}", "color_scale": "{{color_scale}}", "x_variable": "{{x_variable}}", "y_variable": "{{y_variable}}" }}, "context": 100}}'
path: result
I’ve tried doing this in the backend, where I add two new columns based on the parameter chosen. The API itself works perfectly in the backend (tested in Python). However, when the query is made in Redash, I get an error: headers.Access-Control-Allow-Origin
, which I believe relates to CORS, which doesn’t seem to be fully implemented in Redash.