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
chotu27
Post Patron
Post Patron

Creating Selection manager for Custom Table visuals

Hi All,   Can anyone Help how to build Selection ID or Selection Manager for custom table visual.   

12 REPLIES 12
v-viig
Community Champion
Community Champion

Hello @chotu27,

 

You should use something like this:

options.dataViews[0].table.identity.map((identity: DataViewScopeIdentity) => {
    const categoryColumn: DataViewCategoryColumn = {
        source: this.dataView.source.table.columns[0],
        values: null,
        identity: [identity]
    };

    return this.host.createSelectionIdBuilder()
        .withCategory(categoryColumn, 0)
        .createSelectionId();
});

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

Hi Ignat

I am not able to find any 

this.dataView.source

on the power bi dataview objects. Could you please help me in the retrieving that or any documentation which would help me get the source of that object? 

v-viig
Community Champion
Community Champion

Hello @chotu27

 

You can get a dataView object from option of the update method.

public update(options: VisualUpdateOptions) {
    const dataView: DataView = options && options.dataViews && options.dataViews[0];
}

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

@v-viig

  Thank you for your response ! Is this solution for table view selection manager or categorical view ?

 

 

Please let me know......

v-viig
Community Champion
Community Champion

This solution for table mapping.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

chotu27
Post Patron
Post Patron

Hi All,

 

Can anyone Help how to build Selection ID or Selection Manager for custom table visual.

 

Any documents related to build Selection Manager for Custom table visual In power bi.

 

 

 

Please help!!!!!!!!!!

I need an example of what you are talking about, "Selection Manager" does not compute.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

In some the information i have read still the creation of selection manager for table visual is not available we have only selection manager for categorical view not for the table view .

 

 

Is that True????

I still don't understand what you mean by selection manager. Selecting what? Managing what? Can you select columns to put into a table, yes.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

If you know about creating custom visuals in power bi then you can understand what is selection manager.

 

It is about slicing the data based on selections made in visual like what we we have now in  default table visual in power bi.

 

I have created my own Customized table visual but iam not able to create the functionality of slicing and clicking in visual (Selection manager Builder)

 

 

 

You should post this under the Developer forum, not Desktop:

 

https://community.powerbi.com/t5/Developer/bd-p/Developer

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

Thanks

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 Fabric 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.

Top Solution Authors