Hi Mitsu,
In order to do calculation in Dundas BI, you can use our inbuilt formulas. You can check out the list of formulas here:
https://www.dundas.com/support/learning/documentation/analyze-data/formulas/list-of-formulas?v=7.0
We also support all the javascript function in case the desired formula is not covered.
For the radio button to change the flag to yes, you would have to create radio button component from the toolbar and add values to it manually. Later, on the selection changed event of the radio button, write a script which checks the value and set the view parameter accordingly which further changes the visualization. Here is the sample script doing the same:
var myVP = this.parentView.control.getViewParameterByName(“viewParameter1”);
if(radioButtonList1.items[0].isChecked == true){
// Remove all values and tokens from the parameter value
myVP.parameterValue.clearTokens();
myVP.parameterValue.clearValues();
var myMemberValue =new dundas.data.MemberValue({
“hierarchyUniqueName”:“OnlineOrderFlag”,
“levelUniqueName”:“OnlineOrderFlag”,
“memberKind”:“Regular”,
“uniqueName”:“True.OnlineOrderFlag”
});
myVP.parameterValue.token =null;
myVP.parameterValue.values.length =0;
myVP.parameterValue.values.push(myMemberValue);
myVP.invalidateParameterValueLastModifiedTime();
myVP.refreshAllAdapters();
}
else{
// Remove all values and tokens from the parameter value
myVP.parameterValue.clearTokens();
myVP.parameterValue.clearValues();
var myMemberValue =new dundas.data.MemberValue({
“hierarchyUniqueName”:“OnlineOrderFlag”,
“levelUniqueName”:“OnlineOrderFlag”,
“memberKind”:“Regular”,
“uniqueName”:“False.OnlineOrderFlag”
});
myVP.parameterValue.token =null;
myVP.parameterValue.values.length =0;
myVP.parameterValue.values.push(myMemberValue);
myVP.invalidateParameterValueLastModifiedTime();
myVP.refreshAllAdapters();
}
NOTE: You would have to change the script as per your use case.
Here is the related articles which will help you to implement the solution mentioned:
https://www.dundas.com/support/developer/script-library/filter-and-parameter/set-collection-member-parameter
Regards,
Abhay Rai | BI Implementation Associate