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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.