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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Right First Time Report

Hi,

I'm trying to make a report which will look at data on the failures we've had with a group of assets and report back when the following situation happens:

 

The asset fails, it goes into the workshop to be fixed and is returned to production. Within a 10 day period, it has to go back to the shop for another failure.

 

Also, the user would need to be able to choose a date range which they were interested in.

 

The point being so we can see how often repairs are being done right first time. It sounded simple to me at first but it really isn't! 🙂

 

Here's an example of the raw data and the kind of thing I'm after:

GeekyT_1-1622198996408.png

 

Any ideas would be much appreciate. Thanks.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create two new column and check if they work for you

 

Next Date =
var _dt = [Date of work start]
return
minx(filter(Table, [Assets] = earlier([Assets]) && [Date of work start] >_dt && [Date of work start] <=_dt +10),[Date of work start])

 

Date diff =
datediff([Date of work start],[Next Date],day)

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
amitchandak
Super User
Super User

@Anonymous , Create two new column and check if they work for you

 

Next Date =
var _dt = [Date of work start]
return
minx(filter(Table, [Assets] = earlier([Assets]) && [Date of work start] >_dt && [Date of work start] <=_dt +10),[Date of work start])

 

Date diff =
datediff([Date of work start],[Next Date],day)

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
Anonymous
Not applicable

Thanks @amitchandak just what I needed.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors