Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
09
Helper I
Helper I

Find the date

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. 

DatePartIDDesignatorchange over date
20-avrA5022120repaired20-avr
19-avrA5022120defective20-avr
18-avrA5022120defective20-avr
17-avrA5022120defective20-avr
20-avrB3288286repaired19-avr
19-avrB3288286repaired19-avr
18-avrB3288286defective19-avr
17-avrB3288286defective19-avr
20-avrD5235789repaired19-avr
19-avrD5235789repaired19-avr
18-avrD5235789defective19-avr

09_0-1650460386136.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@09 , try a new column like

 

minx(filter(Table, [ID] =earlier([ID]) && [Part_number] =earlier([Part_number]) && [Designator] ="repaired"), [Date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
09
Helper I
Helper I

Thank you for your help!

It works.

amitchandak
Super User
Super User

@09 , try a new column like

 

minx(filter(Table, [ID] =earlier([ID]) && [Part_number] =earlier([Part_number]) && [Designator] ="repaired"), [Date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.