Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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?
Solved! Go to Solution.
I think you have clicked on the "Unpivot Columns" instead of "Unpivot Other Columns" (see picture).
This is the output you'll see:
Hope it helps,
PDG
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.
(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?
I think you have clicked on the "Unpivot Columns" instead of "Unpivot Other Columns" (see picture).
This is the output you'll see:
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.