Track the progression
Hi Team,
How can we track the progression of an account?
For example if we have a list of account with their status changes date and the status and I want to see for a account what was it's previoud status and date also what is the current status and the change date.
Thanks!
Hi vijayKaushal ,
You can track account progression using an Index column per account and a DAX measure to fetch previous status and date.
Steps to follow :
In Power Query, group your data by Account and add an Index column to track the order of changes.
Then, use a DAX measure like this to pull the previous status:
Previous Status =
VAR i = 'Table'[Index]
RETURN CALCULATE(
MAX('Table'[Status]),
FILTER('Table', 'Table'[Account] = EARLIER('Table'[Account]) && 'Table'[Index] = i - 1)
)
You can do the same for the previous status date.
This way, for every current status, you’ll also see what the status was just before — super useful for progression tracking!
If you'd prefer to do this without any DAX, you can handle it fully in Power Query:
- Sort your data by Account and Status Date (ascending).
- Group by Account:
In Power Query: Home → Group By
Group by Account, and select “All Rows”.
Inside each group:
Add an Index column (starts at 1).
Add a custom column that references the previous row using the Index.
Here is an example to get previous status:
= if [Index] = 1 then null
else #"Previous Step"{[Index]-2}[Status]- Same logic for previous date: just replace [Status] with [Status Date].
- Expand the grouped tables back into the full table.
This gives you a clean table showing:
Current Status
Current Status Date
Previous Status
Previous Status Date
No DAX, all done in Power Query!
⭐Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful? Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together! 🚀 [Explore More]