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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Adwaith_S
New Member

How to make X axis dynamic for bar graph

I have a table in Power BI that looks like this -

 

IDFRUITCOLORTASTEVALUE
1AppleRedSweet10
2AppleGreenSour5
3OrangeOrangeSweet20
4GrapeVioletSweet10
5BananaYellowSweet5
6GrapeGreenSweet20

 

Like Fruits, Color and Taste, I have close to 50 columns, and I want to create a bar chart that dynamically changes X axis (on click of the column name as per user choice) and plots the sum of price as Y value. I tried to achieve this by creating a second table that has all the column names and its attribute combination (like a helper table with 2 columns), but the view created by that method is not working with the slicers present. (e.g. bar chart for X axis= Fruit, filtered for color = Red).

Is there a way to get this done?

 

TIA.

1 REPLY 1
lbendlin
Super User
Super User

Read about the Field Parameters option that was introduced in May 2022.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.