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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors