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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.