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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.