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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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