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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
leroy773
Helper II
Helper II

Need to calculate time of service per installed product on a surly basis for the last twelve months.

Currently, I am working on calculating the on service time for our install base qtrly.  I would like to perform this option in BI.  I have a table that shows the last twelve months of installed product and a table that shows all the work done in the last twelve months.  The two sets show a relationship between the serial number in the two data sets.  This causes an issue where if I look for service time, it will only caluculate service time based on the products that have had service.  So if there is 30 products that were not serviced, these are not taking into account for calculation.  Looking for a solution to sum up all hours worked in the last twelve months from one data set divide it by the number of products installed in the last twelve months from another dataset.  Would like to report on this qtrly, but also have a monthly KPI.

 

Any assistance would be beneficial

2 REPLIES 2

I would add a calc column that returns a true/false if the product is installed in last 12 months. Then create a measure for total service hours (calculate(sum(table[service hours]),filter(all(table))) and a measure for the distinct count of serial numbers with the filter argument set to the original calc column = "True". Finally a measure to divide the two.
Anonymous
Not applicable

@leroy773,

It's hard to offer suggestions without a clear understanding of your issue and context.  Can you post some sample data, your table relationships, and maybe what you've tried already?  See https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490 as a guide.

 

Cheers.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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