Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all, Im using embedded power bi report using javascript in my project. Each and every login, the dropdown options may be differ. Can we selete any option of following via javascript? (Means not filtering, only seleting)
For logins, im using following filter
const filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Master",
column: "companyId"
},
operator: "In",
values: [${company}] //setting company ids here in jsp page
}
Hi @varman,
These filters in your post are filters rather than slicers. It seems we can't manipulate slicers by JS API for now. The workaround could be "Apply a bookmark". Please refer to the demo.
Best Regards,
Dale
| User | Count |
|---|---|
| 59 | |
| 47 | |
| 31 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 77 | |
| 66 | |
| 46 | |
| 22 | |
| 22 |