Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
In describing the use of the Javascript getSlicerState() method to get the state of hierarchy slicers, the Power BI documentation says that "the hierarchy slicer is supported from SDK version 2.21".
When I use Javascript to call slicer.getSlicerState(), sometimes I am getting good responses, but sometimes am getting exceptions thrown for hierarchy slicers, as described in a previous question I posted.
I want to rule out any problem with the "SDK version," but I do not understand what this means in the context of calling a Javascript method for a Power BI embedded report.
I understand what the Power BI SDK is, in the sense of the .NET NuGet package Microsoft.PowerBI.Api, but I do not understand how I can check my "SDK version" in any sense that is relevant when using Javascript rather than .NET.
The technology I am familiar with is .NET and Javascript for web app software development. There are others in my company who build Power BI reports. If there is something on their end that needs to be checked, I am going to need to know what specific questions to ask them.
Can anyone explain what I am missing? Is there truly a Javascript-relevant SDK version that I need to be checking here, or is the documentation leading me astray here?
Solved! Go to Solution.
HI @GregBoet,
Perhaps you can take a look the git page about the javascript api related, you can find the version number from the publish page and corresponding library file property.
In addition, you can also try to reference to the following link to check the package versions:
nuget command line - how to get version of latest version of package? - Stack Overflow
Regards,
Xiaoxin Sheng
HI @GregBoet,
Perhaps you can take a look the git page about the javascript api related, you can find the version number from the publish page and corresponding library file property.
In addition, you can also try to reference to the following link to check the package versions:
nuget command line - how to get version of latest version of package? - Stack Overflow
Regards,
Xiaoxin Sheng
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.