I am trying to set up a dashboard that will read an Excel input "rule table", such that a user can modify the rule table and the dashboard will apply the new rules when the script is refreshed. The script should compare the rule table, which contains values in various fields, to the same fields in the larger dataset (that is read using ODBC). Based on matching data between the rule table and the data set, the script will assign a new value in a new field, as defined in the rule table.
For example, if this is the data:
...and these are the rules...
Note that the null values in "Rule_Color" and "Rule_Location" should be interpreted as any value is okay, including NULL.
The script should return these results:
|SKU||Color||Location||Desired Result||Based on Rule #|
I have tried various combinations of NULL functions and value-handling variables such as "OtherSymbol" but I can't seem to get the right combination. I was hoping I could concatenate the fields being analysed, and use * or some other symbol to have have the script interpret those as any value, but this didn't work.
Any help or ideas are welcome. I have attached a QVW and related data set here.