Forum Discussion
Anonymous
3 years agoNot applicable
How to get underlying data for a specific datapoint on context menu click
Hi, i am trying to get the datapoints and its underlying data for that specific selected datapoint. At present it only exposes the data in the in the visual. i am using the following type script code to get the data points. Please help me to grab the relevant data.
report.off("commandTriggered");
// report.on will add an event handler to commandTriggered event which prints to console window.
report.on("commandTriggered", function (event) {
let commandDetails = event.detail;
console.log(event);
console.log("Event - commandTriggered:\n", commandDetails);
});
report.off("commandTriggered");
// report.on will add an event handler to commandTriggered event which prints to console window.
report.on("commandTriggered", function (event) {
let commandDetails = event.detail;
console.log(event);
console.log("Event - commandTriggered:\n", commandDetails);
});
2 Replies
- AnonymousNot applicable
Hi Anonymous ,
Do you want to export the data from the Power BI visual? Could you please more details on your requirement? Thank you.
Best Regards
- sanketpathreNew Member
How to detect which context menu is click. For example, I want to add some extra logs to check which users request "Export Data". I want to know when Export data is click by End user. Is there any way on client side to check Export data is trigger.