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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Dynamic Bar Chart axis

Hi,

 

I have a requirement where the bar chart needs to change X axis based on value selected from Slicer.

This is a Hierarchy SLicer. Example :

A

  AA

       AAA

If I select Category A from the slicer the Chart should show AA in the X axis

If I select AA from the slicer then it should show AAA

If I select AAA then it should stop at that.

Default should start at A 

 

Usually we have static columns and we can drill down from the chart itself. However ,this time we  do not want to start from the begining level if someone is opening from Sub Category. How can  dynamically achieve this ?

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can use dax function LOOKUPVALUE() and PATHIETM() to achieve the parent level hierarchy value. For more details, please refer to blogs below:

https://powerpivotpro.com/2018/09/using-dax-to-handle-multiple-parent-hierarchies/

https://www.daxpatterns.com/parent-child-hierarchies/

 

Community Support Team _ Jimmy Tao

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi Sdhamani,

 

i also need to achive same sinario in one of my reports.

 

if  you have got solution for this post please share with me.

 


v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can use dax function LOOKUPVALUE() and PATHIETM() to achieve the parent level hierarchy value. For more details, please refer to blogs below:

https://powerpivotpro.com/2018/09/using-dax-to-handle-multiple-parent-hierarchies/

https://www.daxpatterns.com/parent-child-hierarchies/

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.