Forum Discussion
dk_24
Helper I
9 years agoWeek to date sales
Hi All , How to implement the below tableau logic in Power BI. if OrderDate >= DATETRUNC('WEEK',TODAY()) AND OrderDate<= TODAY() then sum(sales) END Here DATETRUNC('WEEK',TODAY()) ----> ...
- Anonymous9 years ago
HI dk_24,
You can use below formula to get the week start date.
WeekStart = [Date] + (1 - WEEKDAY([Date],1))
For your scenario, it will be modified like:
WeekStart = TODAY() + (1 - WEEKDAY(TODAY(),1))
Regards,
Xiaoxin Sheng
Anonymous
9 years agoNot applicable
HI dk_24,
You can use below formula to get the week start date.
WeekStart = [Date] + (1 - WEEKDAY([Date],1))
For your scenario, it will be modified like:
WeekStart = TODAY() + (1 - WEEKDAY(TODAY(),1))
Regards,
Xiaoxin Sheng