Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all,
I would like to filter the table below based on the higher value in the Order ID for each row where the Unique ID is matching.
The table below represents a history that's why there is the same Unique ID for rows, however, the higher value of Order ID means that it's the latest output.
AA ID | DB ID | Status | Order ID | Unique ID |
1111 | 2222 | Failed | 100 | 123456 |
1111 | 2222 | Finished | 101 | 123456 |
2222 | 3333 | Exception | 110 | 234567 |
2222 | 3333 | Rescan | 111 | 234567 |
2222 | 3333 | Finished | 112 | 234567 |
3333 | 1234 | Exception | 120 | 987654 |
As an output table from the example above I would have:
AA ID | DB ID | Status | Order ID | Unique ID |
1111 | 2222 | Finished | 101 | 123456 |
2222 | 3333 | Finished | 112 | 234567 |
3333 | 1234 | Exception | 120 | 987654 |
Thanks for your help!
Solved! Go to Solution.
@Anonymous
Create a new table with the following filter:
Filtered Order Table =
FILTER(
Table2,
var __maxorder = CALCULATE( MAX(Table2[Order ID]) , ALLEXCEPT( Table2 , Table2[AA ID] )) return
Table2[Order ID] = __maxorder
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Create a new table with the following filter:
Filtered Order Table =
FILTER(
Table2,
var __maxorder = CALCULATE( MAX(Table2[Order ID]) , ALLEXCEPT( Table2 , Table2[AA ID] )) return
Table2[Order ID] = __maxorder
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you, that works perfectly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
7 | |
6 | |
6 |