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
gheecalipes25
Helper II
Helper II

how to use divide and subtract from different tabls

hi,

 

i have two tables where i will be basing my calculation from. i need to get the %Uptime of a specific facility: here is my calculation in excel.

 

Measure

%uptime = (prod hours - lost hours) / prod hours

 

Prod hours  is from Production Hours Table

Lost Hours is form Incident Fact Table

 

How do i calculate it? Thanks for the answers.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gheecalipes25 ,prod hours and  lost hours need to be measures and you can analyze them across common tables

 

%uptime = Divide(Sum(Production [prod hours] )- Sum(Fact[lost hours]) ,  Sum(Production [prod hours] ))

View solution in original post

2 REPLIES 2
gheecalipes25
Helper II
Helper II

thanks. i was able to get the measure. 🙂

amitchandak
Super User
Super User

@gheecalipes25 ,prod hours and  lost hours need to be measures and you can analyze them across common tables

 

%uptime = Divide(Sum(Production [prod hours] )- Sum(Fact[lost hours]) ,  Sum(Production [prod hours] ))

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.