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.
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 ?????
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 |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |