Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
For this example below, I wante a DAX measure that returns the change over date from defective to repaired for each ID(the part don't have a unique ID). I tried many formulas but they didn't work for me.
Thanks for your help.
| Date | Part | ID | Designator | change over date |
| 20-avr | A | 5022120 | repaired | 20-avr |
| 19-avr | A | 5022120 | defective | 20-avr |
| 18-avr | A | 5022120 | defective | 20-avr |
| 17-avr | A | 5022120 | defective | 20-avr |
| 20-avr | B | 3288286 | repaired | 19-avr |
| 19-avr | B | 3288286 | repaired | 19-avr |
| 18-avr | B | 3288286 | defective | 19-avr |
| 17-avr | B | 3288286 | defective | 19-avr |
| 20-avr | D | 5235789 | repaired | 19-avr |
| 19-avr | D | 5235789 | repaired | 19-avr |
| 18-avr | D | 5235789 | defective | 19-avr |
Solved! Go to Solution.
@09 , try a new column like
minx(filter(Table, [ID] =earlier([ID]) && [Part_number] =earlier([Part_number]) && [Designator] ="repaired"), [Date])
Thank you for your help!
It works.
@09 , try a new column like
minx(filter(Table, [ID] =earlier([ID]) && [Part_number] =earlier([Part_number]) && [Designator] ="repaired"), [Date])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |