Menu
CoddyTech

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 icon

Challenge

Easy

Add a column Day Type to Dates: "Weekend" for Saturday and Sunday, "Weekday" for the rest.

Try it yourself

Day Type =
DateYearDay Type
2024-01-012,024
2024-01-022,024
2024-01-032,024
Fields
  • Sales
  • Products
  • Stores
  • Customers
  • Dates
    • Date
    • Year
    • Quarter
    • Month
    • MonthNumber
    • Weekday
  • Targets

All lessons in Time Intelligence