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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Grizzlydad
Helper I
Helper I

Create same line chart that is already in excel

Hi all

I am trying to create the same line chart that is pictured in Power Bi desktop, using the line chart visual. I can't get it to exactly replicate.  You can see it works as expected in excel.

I basically want a 3 week comparison of data flow, capturing each day of the week so that the week commencing line has a different colour.

There should be 3 line colours, one representing each week commencing and then the X axis should display the days of the week.

Any thoughts how I can achieve this, I need to know what to put in the relevant axis, legend and value fields?

Weekly Flow Excel Chart.PNG

 

 

 

2 ACCEPTED SOLUTIONS

I think you have clicked on the "Unpivot Columns" instead of "Unpivot Other Columns" (see picture).

P_D_G_0-1601989568324.png

 

This is the output you'll see:

P_D_G_1-1601989641890.png

 

Hope it helps,

PDG

 

View solution in original post

Perfect, thanks for all your help!

View solution in original post

6 REPLIES 6
P_D_G
Resolver III
Resolver III

Hi @Grizzlydad ,

 

Go to Power Query, select the WeekCommencing column > Transform > Unpivot Other columns.

You'll end up with 3 columns: 

- Week Commencing

- Attribute = name of the days

- Value

 

If you close &Apply you can use the following setting to get your desired result.

 

P_D_G_0-1601982939660.png

(the chart is showing dummy data)

Hope it helps,

PDG

 

 

Hiya I did that but got 2 new columns in edit query, like so, and all the other columns remained.  I sthere a difference between Power Query and Edit query?

Unpivoted.PNG

Unpivoted1.PNG

 

I think you have clicked on the "Unpivot Columns" instead of "Unpivot Other Columns" (see picture).

P_D_G_0-1601989568324.png

 

This is the output you'll see:

P_D_G_1-1601989641890.png

 

Hope it helps,

PDG

 

Yes this has worked, thank you.  However can I order the axis to have the days in the correct order so Monday to Sunday or similar, at the moment it is a bit random showing Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday?

 

Thnaks again

Custom sort order of values:
https://radacad.com/sort-a-column-with-a-custom-order-in-power-bi

 

NB: You need to use the column fromt the 2nd column (only containing the days &custom sort order) in your visual!

Best,

PDG

Perfect, thanks for all your help!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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