Hello dmurphy,
I'm not fluent at Widget scripts, but something like this may work. If not please let us know and we can dig further into it.
widget.on('render', function(widget, args){
var data = widget.queryResult.rows; // assuming your data is in rows
for (var i = 0; i < data.length; i++) {
var value = data[i].your_column_name; // replace your_column_name with the actual column name containing 1s and 0s
if (value === 1) {
data[i].your_column_name = "Yes";
} else if (value === 0) {
data[i].your_column_name = "No";
}
}
widget.queryResult.rows = data;
});
Replace `"your_column_name"` with the actual name of the column containing the 1s and 0s in your data. Make sure to configure this script in your Sisense widget script editor, and it will transform the values accordingly whenever the widget is rendered.
Thank you.