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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
stanleyyfy
Regular Visitor

Two lines in one category.. slicer supports multiple selections

Please tell me how to present the PBI visual mode. The slice selector selects a customer to produce two lines (one quantity and one price), and selects two more customers to produce four lines (the quantity and price of two customers). At present, I have tried and found that if [y axis] drags (quantity) and [Auxiliary Y axis] drags (price), the (customer) field cannot be dragged to the legend, but can only be dragged to a small sequence diagram, Or remove the data of the auxiliary y-axis, and then drag the legend to display the customer for filtering. Is there any good way to do it? Because the company's reports at this stage may refer to one category corresponding to two lines, and select two lines of different customers for comparison. Please help to see if there is a good implementation method. thanks

2 REPLIES 2
amitchandak
Super User
Super User

@stanleyyfy ,Not very clear

 

If you are using line visual, you can jot have two measure or legend together , you can not have secondary axis with legend too

 

With a combo visual bar and line, You can have a legend for bar and line measure. The lines will not split by legend

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

11.JPG12.JPG

For example, in the above two figures, the corresponding price of a single customer in the date range is no problem. If you want to add the quantity of each customer and support multiple choices, it won't work. Is it because at present, a legend can only correspond to one option?

 

 

 

14.JPG

13.JPG

 

Finally, I tried to display all the data in one category. Because there is too much difference between the price and the amount of data, there is basically no linear fluctuation and trend in the price line below, so I had to give up this conventional method

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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