Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
cyan
Helper I
Helper I

How to get the selected data from a slicer in JavaScript?

How do I get the value of a selected data from a Slicer in an embedded Power BI report with JavaScript API?

6 REPLIES 6
keyurishah
New Member

HI, DO we have any update on this issue?

Anonymous
Not applicable

I have the same problem. The datasected even was firing when the slicer selction changed. It is not firing any more. Is anybody working on this?

cyan
Helper I
Helper I

Hi everyone,

 

When selecting data from a slicer in my power bi embedded report, the dataSelected event is not firing anymore, I used to catch this event and work on it normally. What did go wrong?

I didn't change the code and it was working normally, it stopped working today.

 

Thanks...

Eric_Zhang
Microsoft Employee
Microsoft Employee


@cyan wrote:

Hi everyone,

 

When selecting data from a slicer in my power bi embedded report, the dataSelected event is not firing anymore, I used to catch this event and work on it normally. What did go wrong?

I didn't change the code and it was working normally, it stopped working today.

 

Thanks...


@cyan

I can confirm that the dataselected won't fire when clicking on a slicer. Can you ensure it was working? If so, you can submit an issue at https://github.com/Microsoft/PowerBI-JavaScript/issues.

@Eric_Zhang yes it was working, I also tested to change the orientation of the slicer from vertical to horizontal and it triggers the dataSelected event in the horizontal orientation (Where the items are represented as buttons instead of checkboxes), so I did report an issue http://community.powerbi.com/t5/Issues/Vertical-Orientation-Slicer-Not-triggering-Data-Selection-eve...

I will submit an issue at the link you provided as well, Thanks. 

Eric_Zhang
Microsoft Employee
Microsoft Employee


@cyan wrote:

@Eric_Zhang yes it was working, I also tested to change the orientation of the slicer from vertical to horizontal and it triggers the dataSelected event in the horizontal orientation (Where the items are represented as buttons instead of checkboxes), so I did report an issue http://community.powerbi.com/t5/Issues/Vertical-Orientation-Slicer-Not-triggering-Data-Selection-eve...

I will submit an issue at the link you provided as well, Thanks. 


@cyan

Some one (may be you?) has submit that issue in Github lib and the PG teamis working on a fix.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.