Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Folks,
I want to calculate Same day last week sales. I am using the below dax:
| Location | Department | CALENDAR_DATE_FMTD | Current Date | M.Sameday_LW Sales |
| 101 | 12 | 30/09/2019 0:00 | 10 | 1 |
| 101 | 12 | 1/10/2019 0:00 | 12 | 2 |
| 101 | 12 | 2/10/2019 0:00 | 13 | 3 |
| 101 | 12 | 3/10/2019 0:00 | 14 | 4 |
| 101 | 12 | 4/10/2019 0:00 | 15 | 5 |
| 101 | 12 | 5/10/2019 0:00 | 16 | 6 |
| 101 | 12 | 6/10/2019 0:00 | 17 | 7 |
| 101 | 12 | 7/10/2019 0:00 | 18 | 10 |
| 101 | 12 | 8/10/2019 0:00 | 19 | 12 |
| 101 | 12 | 9/10/2019 0:00 | 20 | 13 |
| 101 | 12 | 10/10/2019 0:00 | 21 | 14 |
| 101 | 12 | 11/10/2019 0:00 | 22 | 15 |
| 101 | 12 | 12/10/2019 0:00 | 23 | 16 |
| 101 | 12 | 13/10/2019 0:00 | 24 | 17 |
| Total | 244 | 125 |
| Location | Department | Current Date | M.Sameday_LW Sales |
| 101 | 12 | 24 | 125 |
| Location | Department | Current Date | M.Sameday_LW Sales |
| 101 | 12 | 24 | 17 |
how do you "eliminate the date factor" when you still show the 24 date value? Do you have a filter elsewhere?
You may want to add variables to prevent the filter context transition from messing with your expected results.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |