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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Ruedi007
Frequent Visitor

Y-Axis Slicer for different Value Fields

Hi!

 

I have a BarChart with Cities on the x-Axis. What I try to accomplish is to implement a Slicer where I can choose other Fields like

- Deaths

- Inhabitants

- Car Accidents asf.

I was able to find ways to make the x-Axis dynamic but not the y-Axis. If I put the different fields just as they are into the slicer I just see the values of the Fields.

 

Anyone who can help me out here or can link a tutorial?

 

Best!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ruedi007 , refer to

Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Ruedi007 

Insert data to create a new table, add it to slicer,

Capture3.JPGCapture4.JPG

Measure =
SWITCH (
    SELECTEDVALUE ( 'Table 2'[selection] ),
    "deaths", SUM ( 'Table'[deaths] ),
    "inhabitants", SUM ( 'Table'[inhabitants] ),
    "cars accidents", SUM ( 'Table'[cars accidents] )
)

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Ruedi007 , refer to

Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.