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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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