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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pranshuagrawal
Regular Visitor

Drilldown on multiple Grouping is working only for one Grouping

Hi,

 

This is my capabilities.json. I have removed the Objects from this since it was very long.

 

{
    "dataRoles": [{
        "displayName": "X Axis",
        "name": "xAxis",
        "kind": "Grouping"
    }, {
        "displayName": "Y Axis",
        "name": "yAxis",
        "kind": "Grouping"
    }, {
        "displayName": "Value",
        "name": "Value",
        "kind": "Measure",
        "requiredTypes": [{
            "numeric": true
        }, {
            "integer": true
        }]
    }, {
        "displayName": "Tooltip",
        "name": "tooltip",
        "kind": "Measure"
    }, {
        "displayName": "Sort",
        "name": "sort",
        "kind": "Measure"
    }],
    "drilldown": {
        "roles": ["xAxis", "yAxis"]
    },
    "dataViewMappings": [{
        "conditions": [{
            "xAxis": {
                "max": 1
            },
            "yAxis": {
                "max": 1
            },
            "Value": {
                "max": 1
            }
        }],
        "categorical": {
            "categories": {
                "for": {
                    "in": "xAxis"
                },
                "top": {
                    "count": 30
                }
            },
            "values": {
                "group": {
                    "by": "xAxis",
                    "dataReductionAlgorithm": {
                        "top": {
                            "count": 30
                        }
                    },
                    "select": [{
                        "for": {
                            "in": "yAxis"
                        }
                    }, {
                        "bind": {
                            "to": "Value"
                        }
                    }, {
                        "bind": {
                            "to": "tooltip"
                        }
                    }, {
                        "bind": {
                            "to": "sort"
                        }
                    }]
                }
            }
        }
    }],

 

 

As it can be seen that drilldown is applied on both xAxis and yAxis. When I add multiple data in xAxis and yAxis, the drill down is working fine for xAxis and I am getting the correct category in dataViews.

 

But with role yAxis, I am getting multiple categories in dataViews array and I am not able to identify which one user has drilled down/ up on.

 

Is there anyway to make it work for both the grouping?

1 REPLY 1
V-lianl-msft
Community Support
Community Support

I searched some data and found no solution for the two columns of drill down.

https://community.powerbi.com/t5/Custom-Visuals-Development/Custom-visual-drill-down-in-multiple-rol... 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.