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
thompsza
Frequent Visitor

multiple Y axis line chart, slice by y-axis fields

PBI Newbie here.

 

Ok, so I've spent a few days tyring to track down a solution for this and I just haven't been able to come up with anything that makes any sense, please help!

 

The data I'm working with is 7 columns of whole numbers that i've created measures for to supply the median of the column. What i'm being asked to produce is a line chart that can provide the median times by month and have a comparison line for the previous year or more etc. With only one measure that has been an easy visual, but they want all 7 in one single chart where they can slice based on which kpi they want to view; e. g. have measures A-G loaded into it, but when they select C, it only displays the information for C and the rest is sliced out. I've tried looking through the 'add visuals' page and tried a few but none seemed to do what I need to accomplish.

 

So really I have two questions:

1) is there a visual for a line chart that can accept more than one Y-axis value?

2) how do i create a slicer to slice based on a measure, and/or how can i create one that will slice out the 6 other measures?

                                                      

 

The only solution i can think of (i may not explain this correctly) but is to create a series of bookmarks and add action buttons/icons to the page that will bring up the wanted information when published. 

 

Thank you in advance for any help/suggestions!

2 ACCEPTED SOLUTIONS
jsaunders_zero9
Responsive Resident
Responsive Resident

Have a look into using a disconnected slicer and a switch statement to show the selected measures.

As an example you could create your 7 measures and then an 8th "SelectedMeasure" 

Doing this will mean only one measure is added to the visual but the value of said measure will align to what the user has selected.

Happy to set it up if you can provide some sample data.

Thank you

View solution in original post

I have setup a basic file for you to show what I mean.

thompsza_sample.pbix

View solution in original post

3 REPLIES 3
jsaunders_zero9
Responsive Resident
Responsive Resident

Have a look into using a disconnected slicer and a switch statement to show the selected measures.

As an example you could create your 7 measures and then an 8th "SelectedMeasure" 

Doing this will mean only one measure is added to the visual but the value of said measure will align to what the user has selected.

Happy to set it up if you can provide some sample data.

Thank you

I have setup a basic file for you to show what I mean.

thompsza_sample.pbix

@jsaunders_zero9 

Thats exactly what i needed, thank you so much! 

 

I ended up creating a series of bookmarks with action enabled buttons for the report i'm working on, but I know that I'll have the same thing going on in a couple other dashboards they want me to build so I'll definitely be using this. I should be able to use the sample you created to build the visuals in the future, the sample data you provided is basically what I'm dealing with. 

 

Again, thank you very much! I really appreciate the help!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors