cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexisc67 Regular Visitor
Regular Visitor

Custom visual drill down in multiple roles

Hi,

 

I have modified the Flow Map custom visual  from Weiweicui to see if I can make aggregations work in a hierarchy, so a user can drill down/up from a location to country, region, etc in the same chart. The flow map build the lines from a source and destination, that is, two roles. I want the users to be able to drill down in using both, so a user can see a flow for example from a Country to a Port, and rill down to see from a Port to Port, or Country to Country, etc.

 

I edited the capabilities.json and added the following:

 

    "drilldown": {

        "roles": ["Origin", "Dest"]

    },

 

The chart now shows a new widget like below and seems to work fine. The only problem is that the labels in the dropdown don’t appear. I expect these to be Origin and  Destination, but instead they are ‘undefined’

 

See below:

 Capture.PNG

 

When inspecting the element the label atributes of the select element are undefined. See below:

 

undefined.PNG

 

Can you think of where I look into to fix this. I tried finding documentation about this widget but could not find.

 

Thanks,

Alexis

10 REPLIES 10
Highlighted
alexisc67 Regular Visitor
Regular Visitor

Custom visual drill down in multiple roles

Hi,

 

I have modified the Flow Map custom visual  from Weiweicui to see if I can make aggregations work in a hierarchy, so a user can drill down/up from a location to country, region, etc in the same chart. The flow map build the lines from a source and destination, that is, two roles. I want the users to be able to drill down in using both, so a user can see a flow for example from a Country to a Port, and rill down to see from a Port to Port, or Country to Country, etc.

 

I edited the capabilities.json and added the following:

 

    "drilldown": {

        "roles": ["Origin", "Dest"]

    },

 

The chart now shows a new widget like below and seems to work fine. The only problem is that the names in the dropdowns don’t appear. I expect these to be Origin and  Destination, but instead they are ‘undefined’

 

See below:

 

 Capture.PNG

 

Can you think of where I look into to fix this. I tried finding documentation about this widget but could not find.

 

Thanks,

Alexis

alexisc67 Regular Visitor
Regular Visitor

Re: Custom visual drill down in multiple roles

Hi,

Here is the inspected select element. The labels are undefined, but the values are correct, therefore the drill downs work.

 

undefined.PNG

Thanks,

Alexis

Moderator v-viig
Moderator

Re: Custom visual drill down in multiple roles

Hi @alexisc67,

 

Looks like Drill-down by multi columns is not supported by Power BI Custom Visuals API.

 

Have you tried to specify a single column name instead two columns?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

alexisc67 Regular Visitor
Regular Visitor

Re: Custom visual drill down in multiple roles

Hi Ignat,

 

It seems it is suportted. It is just the labels in the drop down that do not show. The functionality is there. I am able to drill down in the two columns with success. The first one is the origin an the second is the destination.The code seems to be there to support it but with a defect on the labels as you can see in the screenshot above with the select xml element. I don't think this is custom code for the visual, I think this widget is in the core Power BI. Can you check that?

In the screenshot below you can see a function/property $ctrl.canDrillOnMoreThanOneRole()

 

selectelement.PNG

 

Thanks,

Alexis

alexisc67 Regular Visitor
Regular Visitor

Re: Custom visual drill down in multiple roles

Hi @v-viig,

 

I also added the same code to the Sankey diagram. See below. The same happens with the labels, but the funcitonality is good, i can drill in Source and Destination. I hope you can find some informaiton about this.

 

sankey.PNG

Moderator v-viig
Moderator

Re: Custom visual drill down in multiple roles

We'll consider this issue in upcoming versions of Power BI Visuals API but we can't share any ETA so far.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

alexisc67 Regular Visitor
Regular Visitor

Re: Custom visual drill down in multiple roles

Hi,

 

Thanks. Maybe you can add it to the list of Quick Wins since this should take just a few minutes for you guys. Will you keep this in a list or how you track it?

 

Regards,

Alexis

Moderator v-viig
Moderator

Re: Custom visual drill down in multiple roles

We've sent this issue to engineering team to consider and address.

I guess it will take a few months to be fixed since sprint plan is already filled.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

vachesage New Member
New Member

Re: Custom visual drill down in multiple roles

Any update on this front?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 2,037 guests
Please welcome our newest community members: