Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have data as shown belew
| id | stage | status |
| 1 | a | complete |
| 1 | b | complete |
| 1 | b | not complete |
| 2 | a | complete |
| 2 | b | not complete |
I want to drop the duplicate rows based on stage and id columns but because they have different status and want to keep the one with "complete".
I have seen this measure but I don't know how to compare by stage too and how to make it keep specific value not the MIN
measure = SUMMARIZE(yourTablename, yourTablename[ID], "MinValue", MIN(yourTablename[status]) )
the result I expect
| id | stage | status |
| 1 | a | complete |
| 1 | b | complete |
| 2 | a | complete |
| 2 | b | not complete |
Solved! Go to Solution.
thank you it worked but is there any way to apply it with measure
Hi @Anonymous ,
Yes,
try this code:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |