Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Javascript - How to retrieve filters from hierarchy slicer

Hello, everyone,

 

I would like to retrieve the filters from the HierarchySlicer (Slicer) from Microsoft. This was published in February 2020 with the new features.

 

To retrieve the current filters I use the method getSlicerState(), which doesn‘t work with the new feature.

 

For example, I have the following hierarchy slicer element:

  • Dodge
    • Challenger
    • Charger
  • Ford
    • Focus
    • Fiesta
    • Mustang

If I select Dodge and/or Ford on the upper level I will receive a result back. But if I select an element on the upper level like 'Dodge' and additionally select an element on the lower level like 'Mustang', I get no result.

 

Unfortunately there are no notes about the changes of the PowerBI Javascript API.

 

Does someone have the same problem and can help me?

Thanks for answers.

 

No Replies