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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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

[email protected]

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.