Forum Discussion
Anonymous
6 years agoNot applicable
getSlicerState throws an error - TypeError : slicer.getSlicerState is not a function
How can fix the error : - TypeError : slicer.getSlicerState is not a function , when trying to call the getSlicerState of the slicer API . The following is the code: var embedContainer = $('...
amshuste
6 years agoPower BI Team
Please try to check if your filter is right and that the "slicer" var is populated.
Make sure that the visual title is "Region"
visual.title == "Region"
We recommend to filter according to the visual name which is a unique identifier.
If the visual is filtered right, and you still get this error, please try to update your JavaScript SDK version.