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
bhmiller89
Helper V
Helper V

Calculate Hourly Rate

I did this before and now completely forgot what I did.

 

I have a colum called "NTE Hours" and a column "Duration" as well as a column "NonRecurringServicesTotal Actual" which is a dollar amount.  The relationship is attached to a job number, multiple job reports are summed together to create "duration" where there is only one NTE Hours value per job number. 

 

I need to calculate theprojected hourly rate as well as the actual hourly rate

 

Projected= NonRecurringServicesTotal Actual/ NTE Hours

Actual= NonRecurringServicesTotal Actual/ Duration

 

Any assistance on how to write this out is appreciated 

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
Employee

@bhmiller89 

Regarding how to wirte the formula depends on where you would like to use the result.

 

For example, if you would like to add the calculated results into the current table, we could write the formula in the following format:

As a calculated column:

Projected = DIVIDE(Table1[NonRecurringServicesTotal Actual], Table1[NTEhours])

ActualRate = DIVIDE(Table1[NonRecurringServicesTotal Actual], Table1[Durations])

Capture.PNG
 

See if this would help, and if any further help needed, please post back.

 

Regards,

Charlie Liao

View solution in original post

2 REPLIES 2
v-caliao-msft
Employee
Employee

@bhmiller89 

Regarding how to wirte the formula depends on where you would like to use the result.

 

For example, if you would like to add the calculated results into the current table, we could write the formula in the following format:

As a calculated column:

Projected = DIVIDE(Table1[NonRecurringServicesTotal Actual], Table1[NTEhours])

ActualRate = DIVIDE(Table1[NonRecurringServicesTotal Actual], Table1[Durations])

Capture.PNG
 

See if this would help, and if any further help needed, please post back.

 

Regards,

Charlie Liao

Greg_Deckler
Super User
Super User

Probably create a couple measures like:

 

Projected = SUM([NonRecurringServicesTotal Actual])/SUM([NTE Hours])

Actual = SUM([NonRecurringServicesTotal Actual])/SUM([Duration])

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.