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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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