Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am working on a custom visual and using the DataViewMappings - Matrix. I am struggling to get the selectionIDs to work.
My dataviewmapping is below. I am not using columns but just rows
"dataViewMappings": [
{
"matrix": {
"rows": {
"for": {
"in": "category"
}
},
"values": {
"select": [
{
"for": {
"in": "measure"
}
}
]
}
}
}
]
I have successfully generated the selectionId
var selectionId: ISelectionId = host.createSelectionIdBuilder()
.withMatrixNode(child, rows.levels)
.createSelectionId();
The data looks like this
Now when I select the first "Carretra" in country "Germany", in my visual, the other visuals don't filter just on the "Carretera" for "Germany" but for all "Carretera"
What I would ideally like is for the following selection i.e. just "Carretera" for "Germany"
When I check the selectionIDs, I get unique selectionIDs for each datapoint
screenshot below showing 6 datapoints, (3 countries by 2 product)
Any help is much appreciated
Thanks
Nishant
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |