Daily DAX : Day 468 STARTOFWEEK
DAX Function: STARTOFWEEK STARTOFWEEK returns a table containing the first date of the week in the current filter context, according to a properly marked calendar table. Syntax STARTOFWEEK ( <calendar> ) <calendar> = name of your date/calendar table (must be marked as date table in Power BI) Return Value A single-row table with: All primary tagged columns (usually Date) All other time-intelligence related columns from your calendar Important: This is a time-intelligence function. → Requires a proper calendar table marked as Date table → Works with calendar (not fiscal) week logic in recent versions Common Use Cases Week-to-date (WTD) calculations WTD Sales = CALCULATE( [Total Sales], DATESBETWEEN( 'Calendar'[Date], STARTOFWEEK('Calendar'), LASTDATE('Calendar'[Date]) ) ) Compare current week vs previous week Sales same week last year = CALCULATE( [Total Sales...