Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi everyone,
i have a historical table with the same ID from different weeks and want to check if the status column changed from one week to another. I've sucefully added a rank column as well as correctly identifying the previous weekday. Nevertheless, my previous status column is not working correctly as showed below:
ID | Hiring_Status_Real | WeekDay | rank | Previous Week date | Previous Status |
128 | Closed | 20/12/2021 | 6 | 13/12/2021 00:00 | In Progress |
128 | Closed | 13/12/2021 | 5 | 06/12/2021 00:00 | In Progress |
128 | In Progress | 06/12/2021 | 4 | 29/11/2021 00:00 | In Progress |
128 | In Progress | 29/11/2021 | 3 | 22/11/2021 00:00 | In Progress |
128 | In Progress | 22/11/2021 | 2 | 15/11/2021 00:00 | In Progress |
128 | In Progress | 15/11/2021 | 1 |
For the rank 6 the previous status should be "Closed" and not "In progress"...
My formulas:
Solved! Go to Solution.
@JMHenriques , Try a new column like
new column =
var _max = maxx(filter(Table, [ID] = earlier([ID]) && [WeekDay] < earlier([WeekDay])),[WeekDay])
return
maxx(filter(Table, [ID] = earlier([ID]) && [WeekDay] =_max),[Hiring_Status_Real])
If you want a measure then you should have seperate date/week table with rank and then try like
Last Week = CALCULATE(MAx('Table'[Hiring_Status_Real]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
@JMHenriques , Try a new column like
new column =
var _max = maxx(filter(Table, [ID] = earlier([ID]) && [WeekDay] < earlier([WeekDay])),[WeekDay])
return
maxx(filter(Table, [ID] = earlier([ID]) && [WeekDay] =_max),[Hiring_Status_Real])
If you want a measure then you should have seperate date/week table with rank and then try like
Last Week = CALCULATE(MAx('Table'[Hiring_Status_Real]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
42 | |
30 | |
27 | |
26 |