Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
garysweeting
Regular Visitor

Create SelectionId for Matrix data

Is it possible to create a SelectionID using the Matrix data mapping?

 

The tutorial covers Categories (https://github.com/Microsoft/PowerBI-visuals/blob/master/Visual/Selection.md#managing-selection-sele...) and the following post suggests that it's not available for Table (http://community.powerbi.com/t5/Developer/SelectionId-for-table/m-p/76506/highlight/true#M2632).

1 ACCEPTED SOLUTION

I received some guidance on how to resolve this, you can create a DataViewCategoryColumn object based on your data. Here's an example: https://github.com/Microsoft/powerbi-visuals-sunburst/blob/master/src/visual.ts#L147

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@garysweeting,

 

At least, seems you can not use the API. Just leave a comment on GitHub.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I received some guidance on how to resolve this, you can create a DataViewCategoryColumn object based on your data. Here's an example: https://github.com/Microsoft/powerbi-visuals-sunburst/blob/master/src/visual.ts#L147

Anonymous
Not applicable

The link is  missing, and we are stuck exactly here. 

Any tips?

v-viig
Community Champion
Community Champion

This one is for <= API 1.13.0: https://github.com/Microsoft/powerbi-visuals-sunburst/blob/d7e094c1d10d2445d66fbaf3b94e3f5e2bae5fec/...

 

That one is for >= API 2.0.0: https://github.com/Microsoft/powerbi-visuals-sunburst/blob/41cfe43d2402330d4d60c16caa17d391635014e8/...

 

The main difference here is how queryName is populated.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.