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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am using the following formula for a calculated column, which works perfectly, to determine if a userID visited in the previous month, and adds a " 1" to the row to signify that that userID visited one month ago. I am looking to replicate the same thing, except I want to determine if that userID visited one WEEK ago instead. Below is the formula that works:
Hi @jackj
Try this
Active Last Week = IF(
CALCULATE(
COUNTROWS('warehouse Orders'),
FILTER('warehouse Orders', WEEKNUM('warehouse Orders'[Order Date]) = WEEKNUM('warehouse Orders'[Visit Week]) - 1),
ALLEXCEPT('warehouse Orders','warehouse Orders'[UserID])
)
>0,1,0)
Regards
Phil
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |