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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
eagletro
Frequent Visitor

Stock Movement graph

Hi,

 

i am trying to graph the below. i  just want each year as a line showing the values for the item number 23670030 by month.

data graph.PNG

i can achieve the below in excel.. each series is a year.. sorry rushed it 🙂

graphexcel.png

 

but the best i can achieve in power bi so far is..

 

graph.PNG

 

any help will greatly appreciated.

 

Robert

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @eagletro,

 

According to your description above, you may need to use Unpivot option under Query Editor > Transform to unpivot your "JAN", "FEB" ... "DEC" columns to a column with all months, and a column with all values of each month. 

 

Then you should be able to use the unpivoted Month column as Axis, the YEAR column as Legend, and the Value column as Values on the Line chart to get your expected result.

 

For more details about how use Unpivot option with Power BI, you can refer to this article. Smiley Happy

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @eagletro,

 

According to your description above, you may need to use Unpivot option under Query Editor > Transform to unpivot your "JAN", "FEB" ... "DEC" columns to a column with all months, and a column with all values of each month. 

 

Then you should be able to use the unpivoted Month column as Axis, the YEAR column as Legend, and the Value column as Values on the Line chart to get your expected result.

 

For more details about how use Unpivot option with Power BI, you can refer to this article. Smiley Happy

 

Regards

prakash_gautam
Resolver II
Resolver II

Hello,

 

What about Year in Legend, Month in Axis and the measure in Values as in the following screen:

 

line-graph.png

Thanks,

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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