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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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