Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
IsInLastWeek
=if([IsInCurrentYear] && (weeknum(now()) -1) = [WeekOfYearNumber, 1, 0))
or
IsLast7days = if(and([date] > = [Today] - 7, [date] = [today], 1, 0)
Solved! Go to Solution.
You can use the following methods to exclude date from current week.
1. In Power BI Query Editor, add a custom column. Then filter the custom column.
=Date.IsInCurrentWeek([Date])
2. Create a calculated column using dax below. Then filter the table using the column or create slicer/filters using this column.
Column = IF(WEEKNUM(Table[Date])=WEEKNUM(NOW()),1,0)
Regards,
Lydia
You can use the following methods to exclude date from current week.
1. In Power BI Query Editor, add a custom column. Then filter the custom column.
=Date.IsInCurrentWeek([Date])
2. Create a calculated column using dax below. Then filter the table using the column or create slicer/filters using this column.
Column = IF(WEEKNUM(Table[Date])=WEEKNUM(NOW()),1,0)
Regards,
Lydia
thanks, figured it out yesterday 🙂 first one works perfectly, while taking into account the week starting from mon to sunday.
or maybe something like:
today - date.isincurrentweek ?????
User | Count |
---|---|
140 | |
113 | |
104 | |
76 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |