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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

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

@Anonymous ,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] ))

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
Anonymous
Not applicable

thanks. i was able to get the measure. 🙂

amitchandak
Super User
Super User

@Anonymous ,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] ))

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors