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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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

pbicvsupport@microsoft.com

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.

Top Kudoed Authors