Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi Experts!
I have a table with Date, Code and a calculated column as "Method". Now I need to add another column/measure with previous week's Method. That is a table like this (this is a very small sample):
| Date | Code | Method | Prev week Method |
| 27.09.2016 | 792ASC | 40-50 Days | 35-40 Days |
| 30.10.2016 | 589FVT | 35-40 Days | Successful |
| 20.09.2016 | 269CRE | 35-40 Days | 40-50 Days |
| 23.10.2016 | 279DEW | Successful | XXX |
If relevant, calculated column "Method" is based on another calculated column.
I tried several formulas, but nothing worked.
Column=CALCULATE(AVERAGE(Table[Method),FILTER(ALL(Table),Table[Date]=TODAY()-1)
Measure=CALCULATE(AVERAGE(Table[Method),FILTER(ALL(Table),Table[Date]=TODAY()-1)
Solved! Go to Solution.
hi @Ch
try to add a column like:'
column =
MAXX(
FILTER(
TableName,
TableName[Date]=EARLIER(TableName[Date])-7
),
TableName[Method]
)
it worked like:
hi @Anonymous
can you fill out the last expected column directly? as your description is not sufficient.
I edited the table a little bit. As an example, In the first row of the table, date is 27.09.2016. So one week back is 7 days back. And then the date should be 20.09.2016. Then "Prev week Method" should be the "Method" of 20.09.2016. Which is 35-40 Days. Hope this helps. Thank you for your time.
hi @Ch
try to add a column like:'
column =
MAXX(
FILTER(
TableName,
TableName[Date]=EARLIER(TableName[Date])-7
),
TableName[Method]
)
it worked like:
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |