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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors