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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.