cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MR Frequent Visitor
Frequent Visitor

Display Data by Week day - ie Mon, Tue etc

Hi 

 

I need to sum multple event hours which happen on a given day of the week during a set time period.

For instance, I want to see the sum of events hours over a month in columns Monday, Tuesday, through to Sunday. This is to see the supply or demand on a given day of the week.

 

How can I sum a these hours by week days?

 

Any ideas?

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Phil_Seamark Super Contributor
Super Contributor

Re: Display Data by Week day - ie Mon, Tue etc

Just add a column to your data table, or to your Date table along these lines

 

Weekday = FORMAT(Dates[Date],"DDDD")

And then just drag that column to the axis of your visual.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

6 REPLIES 6
Highlighted
Phil_Seamark Super Contributor
Super Contributor

Re: Display Data by Week day - ie Mon, Tue etc

Just add a column to your data table, or to your Date table along these lines

 

Weekday = FORMAT(Dates[Date],"DDDD")

And then just drag that column to the axis of your visual.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

MR Frequent Visitor
Frequent Visitor

Re: Display Data by Week day - ie Mon, Tue etc

Excellent, thanks Phil

M

Anonymous
Not applicable

Re: Display Data by Week day - ie Mon, Tue etc

This also works as part of the addcolumn query when building the Date Table.

For Example: 
Date =
ADDCOLUMNS (
CALENDAR (DATE(2000,1,1), DATE(2025,12,31)),
"Weekday", FORMAT([Date], "DDDD")
)

charleshale Regular Visitor
Regular Visitor

Re: Display Data by Week day - ie Mon, Tue etc

Or in Power Query:

 

#"Day of Week" = Table.AddColumn(#"__prior command name__", "__desired new column name__", each Date.DayOfWeekName([__column referencing__], "en-US"), type text)
in
#"Day of Week"

GetITDone Frequent Visitor
Frequent Visitor

Re: Display Data by Week day - ie Mon, Tue etc

this does not work,  I copied and pasted get too many arguments

stewarjr Frequent Visitor
Frequent Visitor

Re: Display Data by Week day - ie Mon, Tue etc

Doesn't seem to work for DAX.  "Function 'FORMAT' is not allowed as part of calculated DAX expressions on DirectQuery models."


 

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 94 members 1,561 guests
Please welcome our newest community members: