Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have this calc column to only show previous week.
Week Begins on Monday - >
Solved! Go to Solution.
@Qotsa -
It looks good to me. Only difference I see is:
VAR Current_Week =
CALCULATE (
MAX ( [Week] ) - 1,
FILTER ( vw_ShiftsAll, vw_ShiftsAll[Date] = TODAY () )
)versus:
VAR Current_Week =
CALCULATE (
MAX ( vw_ShiftsAll[Week] ) - 1,
FILTER ( vw_ShiftsAll, vw_ShiftsAll[Date] = TODAY () )
)Maybe you have something else going on that needs to be known?
Proud to be a Super User!
Hey,
this DAX statement works in my calendar tables:
isInPreviousWeek =
var someTestDate = today() -7
var SoWDatePrevWeek = someTestDate - WEEKDAY(someTestDate,2) + 1
var SoWDate = 'Calendar'[Date] - WEEKDAY('Calendar'[Date],2) + 1
return
IF(SoWDatePrevWeek = SoWDate, 1,0)
Basically I use this statement to flag some days in my calendar table with flags like
-1 for the previous week
0 for the current week
1 for the upcoming week
Regards,
Tom
Hey,
this DAX statement works in my calendar tables:
isInPreviousWeek =
var someTestDate = today() -7
var SoWDatePrevWeek = someTestDate - WEEKDAY(someTestDate,2) + 1
var SoWDate = 'Calendar'[Date] - WEEKDAY('Calendar'[Date],2) + 1
return
IF(SoWDatePrevWeek = SoWDate, 1,0)
Basically I use this statement to flag some days in my calendar table with flags like
-1 for the previous week
0 for the current week
1 for the upcoming week
Regards,
Tom
@Qotsa -
It looks good to me. Only difference I see is:
VAR Current_Week =
CALCULATE (
MAX ( [Week] ) - 1,
FILTER ( vw_ShiftsAll, vw_ShiftsAll[Date] = TODAY () )
)versus:
VAR Current_Week =
CALCULATE (
MAX ( vw_ShiftsAll[Week] ) - 1,
FILTER ( vw_ShiftsAll, vw_ShiftsAll[Date] = TODAY () )
)Maybe you have something else going on that needs to be known?
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 100 | |
| 39 | |
| 29 | |
| 29 |