Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

drill down based on legends

I am creating a stacked area chart with Moths on X-axis and sales on Y axis and product as legends. Now I want to create a  drill down on the charts with Praducts->Category->SubCategory, is it possible?

Not applicable

I have a work around solution, not quite as elegant as drilling down the legend but workable.

For each level in the hierarchy create a Filter, then for each filter level create a chart and use the filter level as the legend.

e.g. if the levels are Product Category and Product Sub Category, then create two filters, one for Product Category and the other for Product Sub Category

Then for the charts, chart 1 had Product Category on the legend and Chart 2 had Product Sub Category as its legend.



That's the whole point, you want to avoid to have to use 2 charts.. 

Not applicable

For me it's not about avoiding two charts but reducing clutter in the 2nd level chart.


e.g. Assume Product Category contains 2 categories of vehicles, 4 wheeled and 2 wheeled, and the Product Sub Category contains for 4 wheeled vehicles trucks, cars and vans and for the 2 wheeled vehicles scooters, sports bikes, cruisers and dirt bikes.


Selecting the 2 wheeled vehicles on the Product Category filter dynamically updates the Product Sub Category filter and chart to only show the scooters, sports bikes, cruisers and dirt bikes without the clutter of the 4 wheeled vehicles.

Like I said before it's an alternative solution. I would still prefer to drill down on the legend, but until then this works for me.

If you want just one chart, another solution is to use a dynamic switch measure, where the filter dynamically changes the measure that is displayed on a single chart. Basically one creates measures for each item to be filtered in the 1st and 2nd levels and then one uses the filter to select which of those measures is displayed in the chart.


Wouldn't suit 'Edit Interactions' better for what you're trying to do? Turn the first graph into a slicer for the second graph?

Not applicable

you are completely right!


Hi @powerbitv


It should be.  Just add those fields to the Axis area of the visualisation panel as shown:



To learn more about DAX visit :

Proud to be a Datanaut!

As mentioned I have Months on the x-axis..

IF you add these fields underneath "Months" in that field, then you can drill down to them.


Something like



To learn more about DAX visit :

Proud to be a Datanaut!

For Axis, I have it like this..





The deafult on the X-axis is Months, when I drill down, Months from the X-axis disappears, and it is replaced by ProductGroup->Product->Category. I want to retain the month on the x-axis while drilling down.

Community Champion
Community Champion

To achieve this you need to use the 3rd button from left to right in the Top left corner of the visual

The Expand all down one level in the hierarchy button

then the axis will display all

Good Luck! Smiley Happy

Frequent Visitor

"Expand all one level down in the hierachcy" is working file, but it has several item on the x-axis, Month-ProductName (eg: Jan-ProductName1, Jan-ProductName2... Feb-ProductName1, Feb-ProductName2.. and so on).


I need just Jan, Feb, March on x-axis and Porduct details "drilling down" and stacked area chart like below




No one gets it :). 


I created for this a second custom table with an unpivot on those 4 columns and a relationship with the ID between  them. Then 1 Chiclet slicer for the unpivotted table and 4 'classic slicers'. 


But yes, I'm quite curious if there is an easier way for my end users to get a drill down on legend. 

Frequent Visitor

I get it. I'm having the exact same issue as a new user of PowerBI and to be honest I thought this would be easy seems like this is what PowerBI is meant to do.

I would love this also, would be very powerful.

This is the closest workaround I could do so far (x-axis should be named legend, I know). But still, if you wanted to pin it for just 1 of the types, you have to click an option of a 'normal' slicer and then hit the subtype option. I've created something similar for the y-axis as well so it would be completely flexible. 


My problem so far is, it is fancy, but mainly used for data exploring to see how different section are related to each other. This is generally done by those who already know how Power BI works. And as soon as you find the consistency, you pin that consistency against the wall and the dynamic drill down is no longer required. 


Perhaps when I get to the sales numbers instead of KPI's, that this might become interesting. 


Changing legend 2.png

Changing legend 1.png


Can you walk through how you created this?

Like this:




Then use 'Table 2'[Filter] for the column required in a filter visual. 

worked great, thanks


I'm just missing a real life application for this. The only really useful things I've found is if you want to mess around with the data as a user. 

It has great life application
I am facing the same issue with composite Index evolution over time
I wanna see evolution of composite index in Y and time in X, but i want to be able to drill down the subcategories of my composite index:
click on the graph it shows the evolution of the three main categories over time
click on one main categories it shoes me the evolution of the variable it is composed of (over time in X)
Value is the same (measure called value who does sort of an average)

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors