Menu
CoddyTech

Counting Days

Part of the Time Intelligence section of Coddy's Power BI journey. Lesson 2 of 17.

COUNTROWS(Dates): calendar days. DISTINCTCOUNT(Sales[Date]): days with a sale.

Daily Revenue = DIVIDE([Revenue], COUNTROWS(Dates))

Per day makes long and short months comparable. By store, count the dates in Sales.

challenge icon

Challenge

Easy

Write Daily Revenue: Revenue divided by the calendar days in the filter context. It is checked for each month of each year.

Try it yourself

Daily Revenue =
YearDaily Revenue
2024
2025
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
  • Stores
  • Customers
  • Dates
    • Date
    • Year
    • Quarter
    • Month
    • MonthNumber
    • Weekday
  • Targets

All lessons in Time Intelligence