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
davidbernstein
New Member

Dynamic Y Axis Using Parameter

Hello,

I'd like to create a dashboard containing a bar chart with a user-selected y-axis. I've created a parameter with a slicer on the page that allows user-selection of the variable. I have that parameter listed in the y axis section for the bar chart, but my chart appears blank. It feels like there is a step missing. The graph does show a result when I put the parameter in the x-axis and my intended x-axis value in the y-axis, but this of course is not the data I want to display.

I am hoping to have the user select from the options below, and the graph to return this data disaggregated by two columns: local vs. international. 

Parameter slicer displayed on the page: 

davidbernstein_0-1684692201932.png

 

Blank graph with x-axis and y-axis selected.

davidbernstein_2-1684692356714.png

 

Any guidance is very much appreciated, thank you.

4 REPLIES 4
roman154807808
New Member

The solution is actually pretty simple, for my knowledge y-axis always uses aggregated values so u just need to create parameter with aggregated measures instead of just table columns.

amitchandak
Super User
Super User

@davidbernstein , If you have created this on the column, this needs to be on the x-axis. This on measure , it can be on y-axis(Value axis, assumed column bar)

 

refer if needed


Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

Thanks very much for your reply. I suppose what I don't understand is why it works when I have my y-axis value selected normally from the 'Data' panel 

davidbernstein_3-1684766971927.png

 

 

but not when that same value is selected in the parameter?


 

davidbernstein_2-1684766940432.png

 

I am having the same issue, did you ever figure out how to do this?

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.