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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
brawndo
Frequent Visitor

How do I get a line graph for every day of the week

Hello All,

 

I'm trying to get a graph like the one shown below. Any ideas how to achieve this? The data I'm trying to manipulate is electricity usage in 15 minute intervals. So you'll see in the graph that on every day of the week power concumption dips during that time frame. Any help with this would be greatly appreciated. Thank you!

 

 

 

sample diagram.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @brawndo ,

 

Creating a calculated column like

Weekday = FORMAT([Date],"dddd")

 

It can also be done in power query

Date.DayOfWeekName([Date], "en-US")

Screenshot 2021-04-16 150700.png

Screenshot 2021-04-16 150255.png

 

Reference: Date.DayOfWeekName

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @brawndo ,

 

Creating a calculated column like

Weekday = FORMAT([Date],"dddd")

 

It can also be done in power query

Date.DayOfWeekName([Date], "en-US")

Screenshot 2021-04-16 150700.png

Screenshot 2021-04-16 150255.png

 

Reference: Date.DayOfWeekName

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @brawndo ,

 

You can use unpivot to achieve it.

 

In the Power Query, select all time columns at the same time.

Screenshot 2021-04-14 094612.png

 

Then you can use the line chart to get what you want.

Screenshot 2021-04-14 095823.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@brawndo , Create a Weekday in your table use that. And use that as legend?

 

Weekday = Format([Date], "ddd")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you so much. One final thing i need to solve is instead of displaying 1, 2,3 etc.. Make it show the Actual day of the week. For instance instead of "1" It'll show "Monday". I can't do it through Power query since the column I'm working with is a calculated column. Thank you

I included a snap of the data I'm working with. The top row is the 15 minute interval I mentioned in my original post.

sample data.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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