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
darentengmfs
Post Prodigy
Post Prodigy

Choose which line(s) to display in a Line and Column Chart

Hello,

 

Is it possible to add a toggle/slicer (without using bookmarks) to allow users to include or exclude certain lines in a Line and Column Chart?

 

Would like to allow users to easily include or exclude any of the 3 listed fields from Line y-axis. For example, users can select B and D, and the chart would display A B D.

darentengmfs_1-1740580448750.png

 

Thanks in advance!

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @darentengmfs 

A field parameter for the line measures would be a convenient way of handling this.

 

1. Create a field parameter containing the measures available for selection as lines (B-D in your example).

2. Place the field parameter column in the "Line y-axis" field well.

3. Add a slicer for the field parameter (if not already added).


If you need to allow "no selection" for the line measures, you could do something similar to the method described here.

 

Are you able to get this working? Please post back if needed 🙂

 

regards

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @darentengmfs 

A field parameter for the line measures would be a convenient way of handling this.

 

1. Create a field parameter containing the measures available for selection as lines (B-D in your example).

2. Place the field parameter column in the "Line y-axis" field well.

3. Add a slicer for the field parameter (if not already added).


If you need to allow "no selection" for the line measures, you could do something similar to the method described here.

 

Are you able to get this working? Please post back if needed 🙂

 

regards

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

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