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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RobMerritt
New Member

Trying to make a Y axis column used be dynamic

Hi have a stacked graph that looks at profit and loss, I bY axxis , is there a way to make it so I can dynmically select the column that is used in the Y column? IE instead of using CITY CAN I HAVE A SELECTOR that LETS me CHANGE it to ROOFAGE or or LivingArea or Risk_Score ... etc

 

 

 

 

RobMerritt_0-1698816505208.png

 

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @RobMerritt 

You can do it by using Field parameter.
Please do the following steps:
Go to modeling tab  > paramter option > choose Field

Uzi2019_0-1698817539240.png


Then drag and drop all the columns you want to have in you chart.(slicer selection)

Uzi2019_1-1698817632293.png


then create slicer . add this parameter into your visual (Y axis)

Uzi2019_2-1698817782135.png

 

Uzi2019_3-1698817798077.png


as you see by selecting the slicer value you chart axis will be changing.

If my post helps please give kuos and accept it as a solution!
thanks

 



Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @RobMerritt 
if my post helps! you please accept it as a solution to close this thread and it also helps other users to find solution easily.

Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
AllisonKennedy
Super User
Super User

@RobMerritt  the 'drilldown' functionality will let you do this, but it's not intuitive and requires users to know how to use it.

 

To enable drilldown, simply add all these columns to the 'y axis' of your visual. To use it, You must hover over the visual to get the arrows to appear, and then you have to click the parallel arrows enough times to get to the city or living area, etc. Then click the up arrow to go back. 

 

You could use bookmarks to make this more intuitive for the end user, but that will require much more setup for you. If you use this option, make sure to select 'selected visuals only' for your bookmark.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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