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

pbicvsupport@microsoft.com

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

pbicvsupport@microsoft.com

@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

pbicvsupport@microsoft.com

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.


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

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

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

Thanks

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.