Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Trying to figure out the syntax for a week-to-date measure based on Sunday being the first day of the week.
Does anyone have anything that could point me in the right direction?
Here is what I have done for MTD:
CALCULATE ( SELECTEDMEASURE (), CALCULATETABLE ( DATESMTD ( 'Calendar'[Date] ), 'Calendar'[IsPast] = TRUE () ) )
I think you can find the answer in the following link:
For Sunday being the first day make sure in the weekday formula to put the number 1 (as return type).
e.g. WEEKDAY('Date'[Date],1)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |