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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello All,
I'm having issues for some reason coming up with a simple measure. I have a date field and I created a measure that calculates the Total Views ( SUM(Table('Views')). I would like to create a measure that get me the Total Views 7 days ago. I would like to get the Total Views on 1/8/2025 (3,737) but I'm getting over 60K. My max date is always the previous day. Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @nleuck_101
Please try the following measure:
Last7DayViews =
CALCULATE(
SUM('Table'[Views]),
FILTER(
'Table',
'Table'[Date] = MAX('Table'[Date]) - 7
)
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @nleuck_101 ,
You can achieve your goal by this DAX:
Last7Days =
CALCULATE(
SUM('Table'[Views]),
FILTER(
'Table',
'Table'[Date] = MAX('Table'[Date]) - 7
)
)
Hi @nleuck_101
Please try the following measure:
Last7DayViews =
CALCULATE(
SUM('Table'[Views]),
FILTER(
'Table',
'Table'[Date] = MAX('Table'[Date]) - 7
)
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 114 | |
| 105 | |
| 40 | |
| 34 | |
| 25 |