Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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
Solved! Go to Solution.
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.
Doesn't seem to work for DAX. "Function 'FORMAT' is not allowed as part of calculated DAX expressions on DirectQuery models."
Expression.Error: The name 'FORMAT' wasn't recognized. Make sure it's spelled correctly.
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.
Nope. Does not work. I just get this error over and over "Cannot find table 'Dates'."
In my case this did not work. To correct I removed the table reference:
Day of Week Short Name = FORMAT([Date],"DDD")
Output= Mon, Tue, Wed, etc.
Brilliant! Yet simple
this does not work, I copied and pasted get too many arguments
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"
Hi
Is it possible to return short names of weekdays in Power Query?
(In DAX it is possible with FORMAT function)
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")
)
Excellent, thanks Phil
M
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 44 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |