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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
FabioN
Frequent Visitor

Line chart: cannot insert field into Y2

Hello all,

I have the following data structure

 

DateProductIDStockMinimumStock
01/01/2020Product112530
02/01/2020Product17530
03/01/2020Product11530
04/01/2020Product16530
01/01/2020Product2100150
02/01/2020Product2200150
03/01/2020Product2160150
04/01/2020Product2160150


Stock is the number of items of that product I had in my storage on that given day 

MinimumStock is the minimum number of that item to trigger the order

Date in my example table is dd/mm/yyyy, just to clarify.

 

The real table I'm using has about 300k rows, and more than 1k products.

 

I would like to get something like this:

 

Storage.jpg

 

 

 

 

 

 

 

 

 

 

 

In this way, when i filter for a single product, I get his storage movements and his minimum stock, and I can compare them.

 

In PowerBI, I got a line chart with

Axis: Data

Legend: ProductID

Value: Stock

 

If I try to add MinimumStock to Y2, nothing happens. Like I drag the column over the Y2 box, it gets dashed, I drop it and nothing, it does not get added to the Y2 box or the chart.

If I just check the column name, it goes into the tooltips, but that's not what I want.

Any suggestion? Even if I manually add this simple example data to my PowerBI model, it behaves in the same way.

 

Thank you very much!

Fabio

 

1 ACCEPTED SOLUTION
Wimverh
Resolver IV
Resolver IV

This is at the moment not possible in standard power bi. 

Check the following thread to find a work around:

 

https://community.powerbi.com/t5/Desktop/Legend-is-not-allowing-when-in-values-section-two-measures-... 

View solution in original post

1 REPLY 1
Wimverh
Resolver IV
Resolver IV

This is at the moment not possible in standard power bi. 

Check the following thread to find a work around:

 

https://community.powerbi.com/t5/Desktop/Legend-is-not-allowing-when-in-values-section-two-measures-... 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.