This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I can't find anything exactly like what I'm trying to accomplish, so I need a bit of help.
I have a data set where I have some problem children that i need to remove from the data set entirely.
I need to keep the most recent date for each status and ID.
here's what they look like:
ID1 | Status1 | Date1 |
| ID1 | Status1 | Date2 |
| ID1 | Status1 | Date3 |
| ID1 | Status2 | Date4 |
| ID1 | Status2 | Date5 |
| ID1 | Status2 | Date6 |
| ID2 | Status1 | Date7 |
| ID2 | Status1 | Date8 |
| ID2 | Status1 | Date9 |
| ID2 | Status2 | Date10 |
| ID2 | Status2 | Date11 |
Desired State:
| ID1 | Status1 | Date3 |
| ID1 | Status2 | Date6 |
| ID2 | Status1 | Date9 |
| ID2 | Status2 | Date11 |
Thanks!
Solved! Go to Solution.
Hi @Anonymous
create new calculated table
Table 2 =
FILTER(
ADDCOLUMNS('Table', "Rank", RANKX(FILTER('Table', 'Table'[Status]=EARLIER('Table'[Status]) && 'Table'[ID]=EARLIER('Table'[ID])),'Table'[Date],,DESC)),
[Rank]=1
)
Hi @Anonymous
create new calculated table
Table 2 =
FILTER(
ADDCOLUMNS('Table', "Rank", RANKX(FILTER('Table', 'Table'[Status]=EARLIER('Table'[Status]) && 'Table'[ID]=EARLIER('Table'[ID])),'Table'[Date],,DESC)),
[Rank]=1
)
Nailed it. You're my new hero.
😁
Also,
anyone with the same problem...
You'll need to recreate in the created table any calculated columns (and I'm assuming measures) that you had already created in the original table. otherwise you may have bad data if you were pulling from one of the rows that got removed.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 51 | |
| 46 | |
| 23 | |
| 18 | |
| 18 |