Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I'm working on a custom visual with an OpenLayers Map to better visualise spatial data. So far I've managed to filter and select data in other visuals and have the OpenLayers map react to the selection/filter (It zooms and highlights the selected data). The next is to be able to select something on the openLayers map and filter the other visuals.
I am however unable to apply a selection with the selectionmanager or a filter with the JSONFilter method. I've created a fake filter and tried to apply this with no results at all. Nothing seems to happen. If I check the options of the update function the JSONFilters parameter remains empty. Am I doing something wrong? Any help would be greatly appreciated!
export class Visual implements IVisual {
constructor(options: VisualConstructorOptions) {
let testFilter = new models.AdvancedFilter(
{
table: 'Tablename',
column: 'columnName'
},
"And",
{
operator: "StartsWith",
value: "x"
}
);
this.host.applyJsonFilter(testFilter, "general", "Filter", FilterAction.merge);
}
}
The aim is to obtain a value from a WMS or WFS service and use this value (normally a string) as a filter.
My test dashboard
HI @Anonymous,
How did you configure the selection interactions? Can you please share some more detail?
How to Get Your Question Answered Quickly
In addition, you can also take a look at the following document about selection:
Power BI visual data point selections - Power BI | Microsoft Docs
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |