Weekdays and Weekends
Part of the Time Intelligence section of Coddy's Power BI journey. Lesson 3 of 17.
A column on Dates slices Sales, like Year or Month.
Day Type = IF(Dates[Weekday] IN {"Saturday", "Sunday"}, "Weekend", "Weekday")On an axis: one bar per kind of day. In CALCULATE: a filter like any other.
Challenge
EasyAdd a column Day Type to Dates: "Weekend" for Saturday and Sunday, "Weekday" for the rest.
Try it yourself
Day Type =| Date | Year | Day Type |
|---|---|---|
| 2024-01-01 | 2,024 | |
| 2024-01-02 | 2,024 | |
| 2024-01-03 | 2,024 |
- Sales
- Products
- Stores
- Customers
- Dates
- Date
- Year
- Quarter
- Month
- MonthNumber
- Weekday
- Targets
All lessons in Time Intelligence
1Dates and Calendars
The Date TableCounting DaysWeekdays and WeekendsFirst and Last DatesRecap - Revenue per Day