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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PC20
Frequent Visitor

Dynamic hierarchy based on other visual

I have 2 charts. Both charts have same hierarichal data. 
Chart 1: Matrix Visual & Chart 2: Funnel Chart
I have created a demo pbix file:   https://drive.google.com/file/d/1fEAb2ZsymWPF6DJjVRL0EPRBZWRzRapp/view?usp=sharing 

Based on the value in Chart1, Chart2 hierarchy should be updated with 1 level down of what is selected in Chart 1.
For eg:, if I select "A" in Chart 1, Chart 2 should display the data for A1 & A10.
if I select "A1" in Chart 1, Chart 2 should update to A2.
If "C2" is selected in Chart 1, Chart 2 should update to Blank & C3.
I have created Bookmarks to display this in Demo pbix file.

3 REPLIES 3
Anonymous
Not applicable

Hi @PC20 

If you want to dynamic change the hierarchy,  you may need to create slicers.

e.g

1.create a new table

Table 2 = SUMMARIZE('Table',[L1],'Table'[L2],'Table'[L3],'Table'[L4])

2.Then create a paramater

vxinruzhumsft_0-1693192846566.png

3.Then create a measure and put the measure to the para slicer visual filter

Measure = SWITCH(TRUE(),ISFILTERED('Table 2'[L3]),IF(3 IN VALUES(Parameter[Parameter Order]),1,0),ISFILTERED('Table 2'[L2]),IF(2 IN VALUES(Parameter[Parameter Order]),1,0),ISFILTERED('Table 2'[L1]),IF(1 IN VALUES(Parameter[Parameter Order]),1,0),1)

vxinruzhumsft_1-1693193027724.png

 

3.Then create a new measure

Measure 2 = CALCULATE(SUM('Table'[Col1]),FILTER('Table','Table'[L1] IN VALUES('Table 2'[L1])&&'Table'[L2] IN VALUES('Table 2'[L2])&&'Table'[L3] IN VALUES('Table 2'[L3])&&'Table'[L4] IN VALUES('Table 2'[L4])))

put the paramater and the measure to the visual

vxinruzhumsft_2-1693193111319.png

 

Output

vxinruzhumsft_4-1693193159476.png

 

vxinruzhumsft_5-1693193191792.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

@Anonymous It might not be a feasible option in my case. It is a Management chain hierarchy.
I have 10 levels in hierarchy ,with some of the levels containing more than 1000 values.

And client doesn't prefer the chosing the Slicer option. Ask is to make it completely dynamic.

Anonymous
Not applicable

Hi @PC20 

If you don't use the slicer, the function cannot implement, because the hierarchy cannot dynamically change wihtout the paramater slicer.

 

Best Regards!

Yolo Zhu

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.