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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kitcatnj
Frequent Visitor

Trouble Duplicating Line Chart From Excel In Power BI

Hello. Relatively new here. I THOUGHT i understood how to create a chart. For some reason, no matter what combination I try, I can't seem to correctly re-create the line chart from Excel in Power BI. 

First image is the excel data I am bring in and the line chart I am supposed to duplicate. 

The 2nd are the results I am getting back along with the data. 

What am i doing wrong? I have tried changing x and y axis data, legend data. It seems like the simplist thing to do but It just doesnt work for me. 

 

kitcatnj_0-1674087536662.png

kitcatnj_0-1674088697736.png

 

 

 

For anyone trying to duplicate what I am doining, here is the data.

FoodJan '22Feb '22Mar '22Apr '22May '22Jun '22Jul '22Aug '22Sep '22Oct '22Nov'22Dec'22Avg
Rice47448496481067056245834630333320177474
Beans164165303203781482211361221567420149
Tortillas415718224695181244164871089940129

 

1 ACCEPTED SOLUTION
grantsamborn
Solution Sage
Solution Sage

Unpivotting your table in Power Query is the key step.

 

Follow these steps:

In Power Query
- select Food column and unpivot other columns
- fix up the period and convert it to a date

Create and configure Date table.

Line chart with:
- x-axis: MMM-YY
- y-axis: [Sales] measure
- Legend: [Food] column

 

pbix: https://1drv.ms/u/s!AnF6rI36HAVkhPIi3NykR9olljC9sw?e=n6zGcI

 

Let me know if this helps.

View solution in original post

3 REPLIES 3
kitcatnj
Frequent Visitor

AMAZING! I did try to pivot originally, but i did it on all the columns and it didnt do much for me. I didnt know you could keep on column selected and pivot the rest. It worked PEFECTLY!!!! Thank you so so much!

Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
grantsamborn
Solution Sage
Solution Sage

Unpivotting your table in Power Query is the key step.

 

Follow these steps:

In Power Query
- select Food column and unpivot other columns
- fix up the period and convert it to a date

Create and configure Date table.

Line chart with:
- x-axis: MMM-YY
- y-axis: [Sales] measure
- Legend: [Food] column

 

pbix: https://1drv.ms/u/s!AnF6rI36HAVkhPIi3NykR9olljC9sw?e=n6zGcI

 

Let me know if this helps.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors