You should validate that your code returns what you expect it to return. You can call this function in Authoring on your data and see if it actually returns a No Value dimension column.
if it is correct, then you should check both the inputs you are passing into the function from workshop, and then how you filter the result of the function.
Once we know which piece is broken, we can further assist you in debugging this