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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
I'm trying to collect whatever the value is from last week within a custom column. Below is an example of what it would look like
Solved! Go to Solution.
Remember that you have to calculate this from the point of view of the visual element if you do this as a measure.
So instead of
VAR most_recent_date = LASTDATE('data'[date]) -7
you would say
VAR most_recent_date =DATEADD('data'[date]), -7,DAY)
Note that "the value from last week" is not the same as "the value from the day seven days before the current day"
Hello @Anonymous
Please see if the following query.
Remember that you have to calculate this from the point of view of the visual element if you do this as a measure.
So instead of
VAR most_recent_date = LASTDATE('data'[date]) -7
you would say
VAR most_recent_date =DATEADD('data'[date]), -7,DAY)
Note that "the value from last week" is not the same as "the value from the day seven days before the current day"
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.