Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
Is there any way, using the custom visual API, to get the filter(s) and filter values applied to visual? So basically the "conditions" for the dataset currently served from Power BI?
- Thanks!
Solved! Go to Solution.
Hi @toresenneseth,
Visuals only know about the data supplied by Power BI to its dataView. Power BI will not supply information about applied filters or conditions, unfortunately.
The only exceptions to this are if you have enabled highlighting (which will send original data plus which values should be flagged in your code), or if your visual filters other visuals (behaving as a slicer). In that case you will only have the filters you have applied yourself rather than those that have been applied externally from other visuals or the filter pane though.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @toresenneseth,
Visuals only know about the data supplied by Power BI to its dataView. Power BI will not supply information about applied filters or conditions, unfortunately.
The only exceptions to this are if you have enabled highlighting (which will send original data plus which values should be flagged in your code), or if your visual filters other visuals (behaving as a slicer). In that case you will only have the filters you have applied yourself rather than those that have been applied externally from other visuals or the filter pane though.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |