Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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?
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.
@Anonymous
That's the whole point, you want to avoid to have to use 2 charts..
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.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Measures-Titles-Using-SWITCH/td-p/20...
https://visualbi.com/blogs/microsoft/powerbi/dynamic-measure-selection-power-bi/
@Anonymous
Wouldn't suit 'Edit Interactions' better for what you're trying to do? Turn the first graph into a slicer for the second graph?
you are completely right!
Hi @powerbitv
It should be. Just add those fields to the Axis area of the visualisation panel as shown:
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
For Axis, I have it like this..
Months
ProductGroup
Product
Category
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.
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!
"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.
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.
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
Top!
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)
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |