Hello cube!
I can see in the script library many different examples of filter types but I am not finding much reference to setting a dynamic measure parameter. This code would be very helpful. Any hints?
Hello cube!
I can see in the script library many different examples of filter types but I am not finding much reference to setting a dynamic measure parameter. This code would be very helpful. Any hints?
Hi @ryan,
All you need to do is change the uniqueName to the new field you want and update.
var viewParameter = this.parentView.control.getViewParameterByName(“viewParameter1”);
viewParameter.parameterValue.uniqueName = “Cost of Sale”; // Used to be “Revenue”
viewParameter.refreshAllAdapters();
Jeff,
You da man! Thanks!